Linux s17.hosterpk.com 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
LiteSpeed
Server IP : 192.169.89.90 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : hamzalar
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
GET
15.87
KB
-rwxr-xr-x
2024-10-29 00:00
MagickCore-config
1.77
KB
-rwxr-xr-x
2025-03-30 00:00
MagickWand-config
1.59
KB
-rwxr-xr-x
2025-03-30 00:00
Mail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
[
47.91
KB
-rwxr-xr-x
2026-01-15 00:00
aclocal
35.18
KB
-rwxr-xr-x
2024-11-27 00:00
aclocal-1.16
35.18
KB
-rwxr-xr-x
2024-11-27 00:00
addr2line
32.07
KB
-rwxr-xr-x
2026-02-04 00:00
animate
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
ar
60.41
KB
-rwxr-xr-x
2026-02-04 00:00
arch
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
arpaname
15.43
KB
-rwxr-xr-x
2026-03-27 00:00
as
687.16
KB
-rwxr-xr-x
2026-02-04 00:00
aspell
150.35
KB
-rwxr-xr-x
2024-10-29 00:00
at
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
atq
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
atrm
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
autoconf
14.85
KB
-rwxr-xr-x
2025-03-14 00:00
autoheader
8.82
KB
-rwxr-xr-x
2025-03-14 00:00
autom4te
32.69
KB
-rwxr-xr-x
2025-03-14 00:00
automake
255.91
KB
-rwxr-xr-x
2024-11-27 00:00
automake-1.16
255.91
KB
-rwxr-xr-x
2024-11-27 00:00
autoreconf
26.3
KB
-rwxr-xr-x
2025-03-14 00:00
autoscan
16.77
KB
-rwxr-xr-x
2025-03-14 00:00
autoupdate
33.22
KB
-rwxr-xr-x
2025-03-14 00:00
awk
745.91
KB
-rwxr-xr-x
2024-10-29 00:00
b2sum
55.91
KB
-rwxr-xr-x
2026-01-15 00:00
base32
39.82
KB
-rwxr-xr-x
2026-01-15 00:00
base64
39.84
KB
-rwxr-xr-x
2026-01-15 00:00
basename
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
basenc
52.19
KB
-rwxr-xr-x
2026-01-15 00:00
bash
1.35
MB
-rwxr-xr-x
2024-10-29 00:00
bashbug-64
7.11
KB
-rwxr-xr-x
2024-10-29 00:00
batch
140
B
-rwxr-xr-x
2025-09-19 00:00
bison
494.29
KB
-rwxr-xr-x
2024-10-29 00:00
bunzip2
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzcat
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzcmp
2.09
KB
-rwxr-xr-x
2024-12-19 00:00
bzdiff
2.09
KB
-rwxr-xr-x
2024-12-19 00:00
bzgrep
2.01
KB
-rwxr-xr-x
2024-12-19 00:00
bzip2
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzip2recover
19.55
KB
-rwxr-xr-x
2024-12-19 00:00
bzless
1.23
KB
-rwxr-xr-x
2024-12-19 00:00
bzmore
1.23
KB
-rwxr-xr-x
2024-12-19 00:00
c++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
c++filt
27.52
KB
-rwxr-xr-x
2026-02-04 00:00
c89
228
B
-rwxr-xr-x
2026-02-26 00:00
c99
219
B
-rwxr-xr-x
2026-02-26 00:00
cagefs_enter.proxied
1.27
KB
-rwxr-xr-x
2025-12-07 00:00
cal
52.21
KB
-rwxr-xr-x
2026-01-15 00:00
captoinfo
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
cat
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
cc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
chcon
64.42
KB
-rwxr-xr-x
2026-01-15 00:00
chgrp
64.41
KB
-rwxr-xr-x
2026-01-15 00:00
chmod
60.39
KB
-rwxr-xr-x
2026-01-15 00:00
chown
64.41
KB
-rwxr-xr-x
2026-01-15 00:00
chrt
31.76
KB
-rwxr-xr-x
2026-01-15 00:00
cksum
100.29
KB
-rwxr-xr-x
2026-01-15 00:00
cldetect
10.34
KB
-rwxr-xr-x
2026-05-14 00:00
clear
15.48
KB
-rwxr-xr-x
2026-03-24 00:00
clusterdb
68.76
KB
-rwxr-xr-x
2026-02-27 00:00
cmp
48
KB
-rwxr-xr-x
2024-10-29 00:00
col
23.61
KB
-rwxr-xr-x
2026-01-15 00:00
colcrt
19.53
KB
-rwxr-xr-x
2026-01-15 00:00
colrm
15.52
KB
-rwxr-xr-x
2026-01-15 00:00
column
43.76
KB
-rwxr-xr-x
2026-01-15 00:00
comm
39.94
KB
-rwxr-xr-x
2026-01-15 00:00
compare
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
composite
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
conjure
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
convert
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
cp
133.3
KB
-rwxr-xr-x
2026-01-15 00:00
cpan
8.37
KB
-rwxr-xr-x
2025-03-03 00:00
cpp
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
createdb
72.94
KB
-rwxr-xr-x
2026-02-27 00:00
createuser
73.28
KB
-rwxr-xr-x
2026-02-27 00:00
crontab
1.49
KB
-rwxr-xr-x
2026-01-14 00:00
crontab.cagefs
40.51
KB
-rwxr-xr-x
2026-04-27 00:00
csplit
52.1
KB
-rwxr-xr-x
2026-01-15 00:00
curl
209.31
KB
-rwxr-xr-x
2025-11-17 00:00
cut
47.95
KB
-rwxr-xr-x
2026-01-15 00:00
date
96.1
KB
-rwxr-xr-x
2026-01-15 00:00
dbiprof
6.06
KB
-rwxr-xr-x
2024-10-29 00:00
dd
64.27
KB
-rwxr-xr-x
2026-01-15 00:00
delv
46.64
KB
-rwxr-xr-x
2026-03-27 00:00
df
68.77
KB
-rwxr-xr-x
2026-01-15 00:00
diff
153.17
KB
-rwxr-xr-x
2024-10-29 00:00
diff3
64.14
KB
-rwxr-xr-x
2024-10-29 00:00
dig
153.1
KB
-rwxr-xr-x
2026-03-27 00:00
dir
141.85
KB
-rwxr-xr-x
2026-01-15 00:00
dircolors
47.9
KB
-rwxr-xr-x
2026-01-15 00:00
dirname
31.63
KB
-rwxr-xr-x
2026-01-15 00:00
display
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
dnstap-read
23.53
KB
-rwxr-xr-x
2026-03-27 00:00
dropdb
64.59
KB
-rwxr-xr-x
2026-02-27 00:00
dropuser
64.53
KB
-rwxr-xr-x
2026-02-27 00:00
du
96.74
KB
-rwxr-xr-x
2026-01-15 00:00
echo
31.62
KB
-rwxr-xr-x
2026-01-15 00:00
ed
60.17
KB
-rwxr-xr-x
2024-10-29 00:00
egrep
106
B
-rwxr-xr-x
2024-10-29 00:00
enc2xs
40.82
KB
-rwxr-xr-x
2024-10-29 00:00
enchant
23.48
KB
-rwxr-xr-x
2025-01-16 00:00
enchant-lsmod
15.48
KB
-rwxr-xr-x
2025-01-16 00:00
env
48.38
KB
-rwxr-xr-x
2026-01-15 00:00
eps2eps
643
B
-rwxr-xr-x
2025-05-07 00:00
eqn
152.63
KB
-rwxr-xr-x
2024-10-29 00:00
ex
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
expand
39.89
KB
-rwxr-xr-x
2026-01-15 00:00
expr
43.81
KB
-rwxr-xr-x
2026-01-15 00:00
factor
64.09
KB
-rwxr-xr-x
2026-01-15 00:00
false
27.59
KB
-rwxr-xr-x
2026-01-15 00:00
fc-cache
139
B
-rwxr-xr-x
2024-10-29 00:00
fc-cache-64
23.48
KB
-rwxr-xr-x
2024-10-29 00:00
fc-cat
19.48
KB
-rwxr-xr-x
2024-10-29 00:00
fc-conflist
15.45
KB
-rwxr-xr-x
2024-10-29 00:00
fc-list
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-match
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-pattern
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-query
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-scan
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-validate
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fgrep
106
B
-rwxr-xr-x
2024-10-29 00:00
file
31.93
KB
-rwxr-xr-x
2026-02-23 00:00
find
204.32
KB
-rwxr-xr-x
2024-10-29 00:00
flex
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
flex++
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
flock
23.71
KB
-rwxr-xr-x
2026-01-15 00:00
fmt
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
fold
39.81
KB
-rwxr-xr-x
2026-01-15 00:00
free
23.58
KB
-rwxr-xr-x
2026-01-15 00:00
freetype-config
4.37
KB
-rwxr-xr-x
2024-10-29 00:00
funzip
35.55
KB
-rwxr-xr-x
2025-04-07 00:00
g++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
gawk
745.91
KB
-rwxr-xr-x
2024-10-29 00:00
gcc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
gcc-ar
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcc-nm
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcc-ranlib
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcov
535.2
KB
-rwxr-xr-x
2026-02-26 00:00
gcov-dump
432.82
KB
-rwxr-xr-x
2026-02-26 00:00
gcov-tool
457.48
KB
-rwxr-xr-x
2026-02-26 00:00
gem
249
B
-rwxr-xr-x
2026-04-28 00:00
gencat
31.54
KB
-rwxr-xr-x
2026-05-26 00:00
geoiplookup
15.53
KB
-rwxr-xr-x
2019-11-28 00:00
geoiplookup6
15.48
KB
-rwxr-xr-x
2019-11-28 00:00
geqn
152.63
KB
-rwxr-xr-x
2024-10-29 00:00
getconf
27.31
KB
-rwxr-xr-x
2026-05-26 00:00
getent
31.95
KB
-rwxr-xr-x
2026-05-26 00:00
getopt
23.62
KB
-rwxr-xr-x
2026-01-15 00:00
ghostscript
15.45
KB
-rwxr-xr-x
2025-05-07 00:00
git
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-receive-pack
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-shell
819.72
KB
-rwxr-xr-x
2026-01-09 00:00
git-upload-archive
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-upload-pack
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
gm
15.41
KB
-rwxr-xr-x
2024-09-24 00:00
gmake
280.74
KB
-rwxr-xr-x
2024-11-05 00:00
gneqn
916
B
-rwxr-xr-x
2024-10-29 00:00
gnroff
5.58
KB
-rwxr-xr-x
2024-10-29 00:00
gpg
1.11
MB
-rwxr-xr-x
2026-02-06 00:00
gpg-agent
371.18
KB
-rwxr-xr-x
2026-02-06 00:00
gpg-error
35.75
KB
-rwxr-xr-x
2024-10-29 00:00
gpgsplit
27.82
KB
-rwxr-xr-x
2026-02-06 00:00
gpgv
315.91
KB
-rwxr-xr-x
2026-02-06 00:00
gpic
180.8
KB
-rwxr-xr-x
2024-10-29 00:00
gprof
97.8
KB
-rwxr-xr-x
2026-02-04 00:00
grep
165.82
KB
-rwxr-xr-x
2024-10-29 00:00
groff
76.36
KB
-rwxr-xr-x
2024-10-29 00:00
grops
146.32
KB
-rwxr-xr-x
2024-10-29 00:00
grotty
105.2
KB
-rwxr-xr-x
2024-10-29 00:00
groups
35.81
KB
-rwxr-xr-x
2026-01-15 00:00
gs
15.45
KB
-rwxr-xr-x
2025-05-07 00:00
gsnd
281
B
-rwxr-xr-x
2025-05-07 00:00
gtar
429.65
KB
-rwxr-xr-x
2026-02-23 00:00
gtbl
129.91
KB
-rwxr-xr-x
2024-10-29 00:00
gtroff
551.38
KB
-rwxr-xr-x
2024-10-29 00:00
gunzip
2.28
KB
-rwxr-xr-x
2024-10-29 00:00
gzexe
6.29
KB
-rwxr-xr-x
2024-10-29 00:00
gzip
97.35
KB
-rwxr-xr-x
2024-10-29 00:00
h2ph
28.3
KB
-rwxr-xr-x
2025-07-10 00:00
h2xs
59.51
KB
-rwxr-xr-x
2025-07-10 00:00
head
43.95
KB
-rwxr-xr-x
2026-01-15 00:00
hexdump
47.79
KB
-rwxr-xr-x
2026-01-15 00:00
host
121.02
KB
-rwxr-xr-x
2026-03-27 00:00
hostid
35.79
KB
-rwxr-xr-x
2026-01-15 00:00
hostname
23.51
KB
-rwxr-xr-x
2024-10-29 00:00
hunspell
102.2
KB
-rwxr-xr-x
2024-10-29 00:00
iconv
68.23
KB
-rwxr-xr-x
2026-05-26 00:00
icu-config
205
B
-rwxr-xr-x
2025-07-08 00:00
icu-config-64
21.65
KB
-rwxr-xr-x
2025-07-08 00:00
icuinfo
15.81
KB
-rwxr-xr-x
2025-07-08 00:00
id
43.86
KB
-rwxr-xr-x
2026-01-15 00:00
identify
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
idn
36.15
KB
-rwxr-xr-x
2024-07-18 00:00
ifnames
4.08
KB
-rwxr-xr-x
2025-03-14 00:00
import
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
infocmp
68.02
KB
-rwxr-xr-x
2026-03-24 00:00
infotocap
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
install
141.4
KB
-rwxr-xr-x
2026-01-15 00:00
instmodsh
4.1
KB
-rwxr-xr-x
2024-10-29 00:00
ionice
19.56
KB
-rwxr-xr-x
2026-01-15 00:00
ipcrm
19.59
KB
-rwxr-xr-x
2026-01-15 00:00
ipcs
39.67
KB
-rwxr-xr-x
2026-01-15 00:00
isosize
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
ispell
992
B
-rwxr-xr-x
2023-12-03 05:09
join
52.05
KB
-rwxr-xr-x
2026-01-15 00:00
kill
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
ld
1.13
MB
-rwxr-xr-x
2026-05-27 07:02
ld.bfd
1.13
MB
-rwxr-xr-x
2026-05-27 07:02
ldd
5.27
KB
-rwxr-xr-x
2026-05-26 00:00
less
227.85
KB
-rwxr-xr-x
2024-10-29 00:00
lessecho
15.51
KB
-rwxr-xr-x
2024-10-29 00:00
lesskey
23.56
KB
-rwxr-xr-x
2024-10-29 00:00
lesspipe.sh
3.52
KB
-rwxr-xr-x
2024-10-29 00:00
lex
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
libnetcfg
15.41
KB
-rwxr-xr-x
2025-07-10 00:00
libtool
367.87
KB
-rwxr-xr-x
2024-10-29 00:00
libtoolize
133.48
KB
-rwxr-xr-x
2024-10-29 00:00
link
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
ln
60.26
KB
-rwxr-xr-x
2026-01-15 00:00
locale
51.15
KB
-rwxr-xr-x
2026-05-26 00:00
localedef
314.2
KB
-rwxr-xr-x
2026-05-26 00:00
logger
40.4
KB
-rwxr-xr-x
2026-01-15 00:00
login
47.9
KB
-rwxr-xr-x
2026-01-15 00:00
logname
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
look
19.51
KB
-rwxr-xr-x
2026-01-15 00:00
ls
141.88
KB
-rwxr-xr-x
2026-01-15 00:00
lto-dump
35.33
MB
-rwxr-xr-x
2026-02-26 00:00
m4
251.59
KB
-rwxr-xr-x
2024-10-29 00:00
magick
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
magick-script
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
mail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
mailx
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
make
280.74
KB
-rwxr-xr-x
2024-11-05 00:00
make-dummy-cert
614
B
-rwxr-xr-x
2026-05-20 00:00
mariadb
5.24
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-access
109.34
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-admin
686.82
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-binlog
4.89
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-check
4.68
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-conv
4.37
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-convert-table-format
4.12
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-dump
4.78
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-dumpslow
8.05
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-embedded
20.49
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-find-rows
3.21
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-hotcopy
34.53
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-import
4.67
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-plugin
412.75
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-secure-installation
13.48
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-setpermission
17.56
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-show
673.63
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-slap
692.81
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-tzinfo-to-sql
448.5
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-waitpid
387.6
KB
-rwxr-xr-x
2026-02-10 00:00
mcookie
27.64
KB
-rwxr-xr-x
2026-01-15 00:00
md5sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
mesg
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
mkdir
64.47
KB
-rwxr-xr-x
2026-01-15 00:00
mkfifo
44.02
KB
-rwxr-xr-x
2026-01-15 00:00
mknod
48.06
KB
-rwxr-xr-x
2026-01-15 00:00
mktemp
39.88
KB
-rwxr-xr-x
2026-01-15 00:00
mogrify
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
montage
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
more
47.83
KB
-rwxr-xr-x
2026-01-15 00:00
msql2mysql
1.42
KB
-rwxr-xr-x
2026-02-10 00:00
mv
125.23
KB
-rwxr-xr-x
2026-01-15 00:00
my_print_defaults
432.45
KB
-rwxr-xr-x
2026-02-10 00:00
mysql
5.24
MB
-rwxr-xr-x
2026-02-10 00:00
mysql_config
4.5
KB
-rwxr-xr-x
2026-02-10 00:00
mysql_find_rows
3.21
KB
-rwxr-xr-x
2026-02-10 00:00
mysql_waitpid
387.6
KB
-rwxr-xr-x
2026-02-10 00:00
mysqlaccess
109.34
KB
-rwxr-xr-x
2026-02-10 00:00
mysqladmin
686.82
KB
-rwxr-xr-x
2026-02-10 00:00
mysqlbinlog
4.89
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlcheck
4.68
MB
-rwxr-xr-x
2026-02-10 00:00
mysqldump
4.78
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlimport
4.67
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlshow
673.63
KB
-rwxr-xr-x
2026-02-10 00:00
mytop
72.03
KB
-rwxr-xr-x
2026-02-10 00:00
named-checkzone
31.68
KB
-rwxr-xr-x
2026-03-27 00:00
named-compilezone
31.68
KB
-rwxr-xr-x
2026-03-27 00:00
named-nzd2nzf
15.44
KB
-rwxr-xr-x
2026-03-27 00:00
namei
23.59
KB
-rwxr-xr-x
2026-01-15 00:00
nano
285.3
KB
-rwxr-xr-x
2024-12-11 00:00
neqn
916
B
-rwxr-xr-x
2024-10-29 00:00
nice
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
nl
39.95
KB
-rwxr-xr-x
2026-01-15 00:00
nm
49.11
KB
-rwxr-xr-x
2026-02-04 00:00
nohup
35.71
KB
-rwxr-xr-x
2026-01-15 00:00
nproc
35.82
KB
-rwxr-xr-x
2026-01-15 00:00
nroff
5.58
KB
-rwxr-xr-x
2024-10-29 00:00
nsec3hash
15.52
KB
-rwxr-xr-x
2026-03-27 00:00
nslookup
120.98
KB
-rwxr-xr-x
2026-03-27 00:00
nsupdate
84.19
KB
-rwxr-xr-x
2026-03-27 00:00
numfmt
60
KB
-rwxr-xr-x
2026-01-15 00:00
objcopy
189.84
KB
-rwxr-xr-x
2026-02-04 00:00
objdump
434.15
KB
-rwxr-xr-x
2026-02-04 00:00
od
60.2
KB
-rwxr-xr-x
2026-01-15 00:00
openssl
968.7
KB
-rwxr-xr-x
2026-05-20 00:00
pango-list
19.44
KB
-rwxr-xr-x
2024-10-29 00:00
pango-segmentation
19.45
KB
-rwxr-xr-x
2024-10-29 00:00
pango-view
68.49
KB
-rwxr-xr-x
2024-10-29 00:00
passenger
1.73
KB
-rwxr-xr-x
2026-05-22 00:00
passwd
1.26
KB
-rwxr-xr-x
2026-02-23 00:00
paste
39.73
KB
-rwxr-xr-x
2026-01-15 00:00
patch
194.23
KB
-rwxr-xr-x
2024-10-29 00:00
pathchk
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
pdf2dsc
701
B
-rwxr-xr-x
2025-05-07 00:00
pdf2ps
913
B
-rwxr-xr-x
2025-05-07 00:00
perl
15.29
KB
-rwxr-xr-x
2025-07-10 00:00
perl5.40.2
15.29
KB
-rwxr-xr-x
2025-07-10 00:00
perlbug
44.13
KB
-rwxr-xr-x
2025-07-10 00:00
perldoc
118
B
-rwxr-xr-x
2024-10-29 00:00
perlivp
10.56
KB
-rwxr-xr-x
2025-07-10 00:00
perlml
14.48
KB
-rwxr-xr-x
2025-10-02 00:00
perlthanks
44.13
KB
-rwxr-xr-x
2025-07-10 00:00
pg_dump
435.01
KB
-rwxr-xr-x
2026-02-27 00:00
pg_dumpall
114.11
KB
-rwxr-xr-x
2026-02-27 00:00
pg_restore
188.34
KB
-rwxr-xr-x
2026-02-27 00:00
pgrep
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
php
937
B
-rwxr-xr-x
2025-03-26 00:00
pic
180.8
KB
-rwxr-xr-x
2024-10-29 00:00
piconv
8.08
KB
-rwxr-xr-x
2024-10-29 00:00
ping
157.7
KB
-rwxr-xr-x
2025-10-13 00:00
pinky
39.77
KB
-rwxr-xr-x
2026-01-15 00:00
pkg-config
335
B
-rwxr-xr-x
2024-10-29 00:00
pkill
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
pl2pm
4.43
KB
-rwxr-xr-x
2025-07-10 00:00
pmap
35.67
KB
-rwxr-xr-x
2026-01-15 00:00
pod2html
3.95
KB
-rwxr-xr-x
2025-07-10 00:00
pod2man
18.46
KB
-rwxr-xr-x
2024-10-29 00:00
pod2text
12.8
KB
-rwxr-xr-x
2024-10-29 00:00
pod2usage
4.01
KB
-rwxr-xr-x
2024-10-29 00:00
podchecker
3.64
KB
-rwxr-xr-x
2024-10-29 00:00
post-grohtml
182.88
KB
-rwxr-xr-x
2024-10-29 00:00
pr
76.44
KB
-rwxr-xr-x
2026-01-15 00:00
pre-grohtml
56.35
KB
-rwxr-xr-x
2024-10-29 00:00
precat
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
preunzip
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
prezip
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
prezip-bin
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
printenv
35.62
KB
-rwxr-xr-x
2026-01-15 00:00
printf
43.87
KB
-rwxr-xr-x
2026-01-15 00:00
prove
13.26
KB
-rwxr-xr-x
2024-10-29 00:00
ps
121.77
KB
-rwxr-xr-x
2026-01-15 00:00
ps2ascii
635
B
-rwxr-xr-x
2025-05-07 00:00
ps2epsi
1.24
KB
-rwxr-xr-x
2025-05-07 00:00
ps2pdf
276
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf12
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf13
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf14
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdfwr
1.06
KB
-rwxr-xr-x
2025-05-07 00:00
ps2ps
651
B
-rwxr-xr-x
2025-05-07 00:00
ps2ps2
673
B
-rwxr-xr-x
2025-05-07 00:00
psql
694.47
KB
-rwxr-xr-x
2026-02-27 00:00
ptx
56.01
KB
-rwxr-xr-x
2026-01-15 00:00
pwd
35.83
KB
-rwxr-xr-x
2026-01-15 00:00
pwdx
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
pydoc
79
B
-rwxr-xr-x
2026-04-16 00:00
pydoc3
79
B
-rwxr-xr-x
2026-04-16 00:00
pydoc3.12
79
B
-rwxr-xr-x
2026-04-16 00:00
ranlib
60.42
KB
-rwxr-xr-x
2026-02-04 00:00
readelf
792.37
KB
-rwxr-xr-x
2026-02-04 00:00
readlink
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
realpath
43.95
KB
-rwxr-xr-x
2026-01-15 00:00
recode
31.75
KB
-rwxr-xr-x
2024-07-17 00:00
red
92
B
-rwxr-xr-x
2024-10-29 00:00
reindexdb
81.07
KB
-rwxr-xr-x
2026-02-27 00:00
rename
23.58
KB
-rwxr-xr-x
2026-01-15 00:00
renew-dummy-cert
729
B
-rwxr-xr-x
2026-05-20 00:00
renice
15.51
KB
-rwxr-xr-x
2026-01-15 00:00
replace
395.03
KB
-rwxr-xr-x
2026-02-10 00:00
reset
27.68
KB
-rwxr-xr-x
2026-03-24 00:00
rev
15.5
KB
-rwxr-xr-x
2026-01-15 00:00
rm
60.38
KB
-rwxr-xr-x
2026-01-15 00:00
rmdir
35.74
KB
-rwxr-xr-x
2026-01-15 00:00
rnano
285.3
KB
-rwxr-xr-x
2024-12-11 00:00
ruby
15.25
KB
-rwxr-xr-x
2026-04-28 00:00
run-with-aspell
89
B
-rwxr-xr-x
2024-10-29 00:00
runcon
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
rvi
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
rview
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
s-nail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
scalar
872.67
KB
-rwxr-xr-x
2026-01-09 00:00
scl
39.86
KB
-rwxr-xr-x
2024-10-29 00:00
scl_enabled
262
B
-rwxr-xr-x
2021-07-27 15:14
scl_source
1.88
KB
-rwxr-xr-x
2021-07-27 15:14
scp
137.25
KB
-rwxr-xr-x
2026-05-20 00:00
script
51.93
KB
-rwxr-xr-x
2026-01-15 00:00
sdiff
52.08
KB
-rwxr-xr-x
2024-10-29 00:00
sed
121.16
KB
-rwxr-xr-x
2026-01-23 00:00
selectorctl
7.63
KB
-rwxr-xr-x
2026-04-16 00:00
seq
43.88
KB
-rwxr-xr-x
2026-01-15 00:00
setsid
15.48
KB
-rwxr-xr-x
2026-01-15 00:00
setterm
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
sftp
157.39
KB
-rwxr-xr-x
2026-05-20 00:00
sh
1.35
MB
-rwxr-xr-x
2024-10-29 00:00
sha1sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha224sum
39.8
KB
-rwxr-xr-x
2026-01-15 00:00
sha256sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha384sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha512sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
shred
56.05
KB
-rwxr-xr-x
2026-01-15 00:00
shuf
48.16
KB
-rwxr-xr-x
2026-01-15 00:00
size
31.95
KB
-rwxr-xr-x
2026-02-04 00:00
skill
31.58
KB
-rwxr-xr-x
2026-01-15 00:00
slabtop
23.67
KB
-rwxr-xr-x
2026-01-15 00:00
sleep
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
snice
31.58
KB
-rwxr-xr-x
2026-01-15 00:00
sort
117.35
KB
-rwxr-xr-x
2026-01-15 00:00
spell
125
B
-rwxr-xr-x
2023-12-03 05:09
splain
19
KB
-rwxr-xr-x
2025-07-10 00:00
split
60.43
KB
-rwxr-xr-x
2026-01-15 00:00
sprof
35.53
KB
-rwxr-xr-x
2026-05-26 00:00
sqlite3
1.78
MB
-rwxr-xr-x
2025-07-16 00:00
ssh
864.63
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-add
285.84
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-agent
305.89
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-copy-id
13.84
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-keygen
455.63
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-keyscan
330.45
KB
-rwxr-xr-x
2026-05-20 00:00
stat
76.13
KB
-rwxr-xr-x
2026-01-15 00:00
stdbuf
39.83
KB
-rwxr-xr-x
2026-01-15 00:00
strace
1.52
MB
-rwxr-xr-x
2025-12-17 00:00
stream
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
strings
36.08
KB
-rwxr-xr-x
2026-02-04 00:00
strip
189.84
KB
-rwxr-xr-x
2026-02-04 00:00
stty
59.97
KB
-rwxr-xr-x
2026-01-15 00:00
sum
39.77
KB
-rwxr-xr-x
2026-01-15 00:00
sync
35.69
KB
-rwxr-xr-x
2026-01-15 00:00
tabs
19.54
KB
-rwxr-xr-x
2026-03-24 00:00
tac
39.74
KB
-rwxr-xr-x
2026-01-15 00:00
tail
68.29
KB
-rwxr-xr-x
2026-01-15 00:00
tar
429.65
KB
-rwxr-xr-x
2026-02-23 00:00
taskset
31.72
KB
-rwxr-xr-x
2026-01-15 00:00
tbl
129.91
KB
-rwxr-xr-x
2024-10-29 00:00
tclsh
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
tclsh8.6
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
tee
39.9
KB
-rwxr-xr-x
2026-01-15 00:00
test
35.88
KB
-rwxr-xr-x
2026-01-15 00:00
tic
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
timeout
40.28
KB
-rwxr-xr-x
2026-01-15 00:00
tload
23.54
KB
-rwxr-xr-x
2026-01-15 00:00
tmpwatch
35.68
KB
-rwxr-xr-x
2024-10-29 00:00
toe
23.58
KB
-rwxr-xr-x
2026-03-24 00:00
top
133.71
KB
-rwxr-xr-x
2026-01-15 00:00
touch
76.12
KB
-rwxr-xr-x
2026-01-15 00:00
tput
27.62
KB
-rwxr-xr-x
2026-03-24 00:00
tr
47.97
KB
-rwxr-xr-x
2026-01-15 00:00
troff
551.38
KB
-rwxr-xr-x
2024-10-29 00:00
true
27.59
KB
-rwxr-xr-x
2026-01-15 00:00
truncate
39.8
KB
-rwxr-xr-x
2026-01-15 00:00
tset
27.68
KB
-rwxr-xr-x
2026-03-24 00:00
tsort
47.91
KB
-rwxr-xr-x
2026-01-15 00:00
tty
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
tzselect
14.99
KB
-rwxr-xr-x
2026-05-26 00:00
uapi
1.25
KB
-rwxr-xr-x
2026-05-09 06:59
ul
23.62
KB
-rwxr-xr-x
2026-01-15 00:00
uname
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
unexpand
39.88
KB
-rwxr-xr-x
2026-01-15 00:00
uniq
47.99
KB
-rwxr-xr-x
2026-01-15 00:00
unlink
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
unzip
196.42
KB
-rwxr-xr-x
2025-04-07 00:00
unzipsfx
96.05
KB
-rwxr-xr-x
2025-04-07 00:00
uptime
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
users
35.84
KB
-rwxr-xr-x
2026-01-15 00:00
utmpdump
23.57
KB
-rwxr-xr-x
2026-01-15 00:00
vacuumdb
85.48
KB
-rwxr-xr-x
2026-02-27 00:00
vdir
141.86
KB
-rwxr-xr-x
2026-01-15 00:00
vi
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
view
146
B
-rwxr-xr-x
2026-04-08 00:00
vmstat
39.98
KB
-rwxr-xr-x
2026-01-15 00:00
watch
36.16
KB
-rwxr-xr-x
2026-01-15 00:00
wc
56.04
KB
-rwxr-xr-x
2026-01-15 00:00
wget
447.23
KB
-rwxr-xr-x
2024-12-11 00:00
whereis
32.2
KB
-rwxr-xr-x
2026-01-15 00:00
which
31.8
KB
-rwxr-xr-x
2025-07-01 00:00
who
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
whoami
35.79
KB
-rwxr-xr-x
2026-01-15 00:00
word-list-compress
15.44
KB
-rwxr-xr-x
2024-10-29 00:00
x86_64-redhat-linux-c++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-g++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-gcc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-gcc-14
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
xargs
68.23
KB
-rwxr-xr-x
2024-10-29 00:00
xmlcatalog
23.47
KB
-rwxr-xr-x
2026-01-26 00:00
xmllint
76.88
KB
-rwxr-xr-x
2026-01-26 00:00
xmlwf
39.98
KB
-rwxr-xr-x
2025-12-02 00:00
xsltproc
31.55
KB
-rwxr-xr-x
2025-07-30 00:00
xsubpp
4.96
KB
-rwxr-xr-x
2024-10-29 00:00
yes
35.63
KB
-rwxr-xr-x
2026-01-15 00:00
zcat
1.93
KB
-rwxr-xr-x
2024-10-29 00:00
zcmp
1.64
KB
-rwxr-xr-x
2024-10-29 00:00
zdiff
6.3
KB
-rwxr-xr-x
2024-10-29 00:00
zegrep
33
B
-rwxr-xr-x
2024-10-29 00:00
zfgrep
33
B
-rwxr-xr-x
2024-10-29 00:00
zforce
2.03
KB
-rwxr-xr-x
2024-10-29 00:00
zgrep
8.02
KB
-rwxr-xr-x
2024-10-29 00:00
zip
209.48
KB
-rwxr-xr-x
2025-07-01 00:00
zipcloak
76.02
KB
-rwxr-xr-x
2025-07-01 00:00
zipgrep
2.89
KB
-rwxr-xr-x
2008-10-10 17:40
zipinfo
196.42
KB
-rwxr-xr-x
2025-04-07 00:00
zipnote
63.93
KB
-rwxr-xr-x
2025-07-01 00:00
zipsplit
63.91
KB
-rwxr-xr-x
2025-07-01 00:00
zless
2.38
KB
-rwxr-xr-x
2024-10-29 00:00
zmore
1.8
KB
-rwxr-xr-x
2024-10-29 00:00
znew
4.47
KB
-rwxr-xr-x
2024-10-29 00:00
Save
Rename
#!/usr/bin/perl # Simple user agent using LWP library. =head1 NAME lwp-request - Simple command line user agent =head1 SYNOPSIS B<lwp-request> [B<-afPuUsSedvhx>] [B<-m> I<method>] [B<-b> I<base URL>] [B<-t> I<timeout>] [B<-i> I<if-modified-since>] [B<-c> I<content-type>] [B<-C> I<credentials>] [B<-p> I<proxy-url>] [B<-o> I<format>] I<url>... =head1 DESCRIPTION This program can be used to send requests to WWW servers and your local file system. The request content for POST, PUT and PATCH methods is read from stdin. The content of the response is printed on stdout. Error messages are printed on stderr. The program returns a status value indicating the number of URLs that failed. The options are: =over 4 =item -m <method> Set which method to use for the request. If this option is not used, then the method is derived from the name of the program. =item -f Force request through, even if the program believes that the method is illegal. The server might reject the request eventually. =item -b <uri> This URI will be used as the base URI for resolving all relative URIs given as argument. =item -t <timeout> Set the timeout value for the requests. The timeout is the amount of time that the program will wait for a response from the remote server before it fails. The default unit for the timeout value is seconds. You might append "m" or "h" to the timeout value to make it minutes or hours, respectively. The default timeout is '3m', i.e. 3 minutes. =item -i <time> Set the If-Modified-Since header in the request. If I<time> is the name of a file, use the modification timestamp for this file. If I<time> is not a file, it is parsed as a literal date. Take a look at L<HTTP::Date> for recognized formats. =item -c <content-type> Set the Content-Type for the request. This option is only allowed for requests that take a content, i.e. POST, PUT and PATCH. You can force methods to take content by using the C<-f> option together with C<-c>. The default Content-Type for POST is C<application/x-www-form-urlencoded>. The default Content-type for the others is C<text/plain>. =item -p <proxy-url> Set the proxy to be used for the requests. The program also loads proxy settings from the environment. You can disable this with the C<-P> option. =item -P Don't load proxy settings from environment. =item -H <header> Send this HTTP header with each request. You can specify several, e.g.: lwp-request \ -H 'Referer: http://other.url/' \ -H 'Host: somehost' \ http://this.url/ =item -C <username>:<password> Provide credentials for documents that are protected by Basic Authentication. If the document is protected and you did not specify the username and password with this option, then you will be prompted to provide these values. =back The following options controls what is displayed by the program: =over 4 =item -u Print request method and absolute URL as requests are made. =item -U Print request headers in addition to request method and absolute URL. =item -s Print response status code. This option is always on for HEAD requests. =item -S Print response status chain. This shows redirect and authorization requests that are handled by the library. =item -e Print response headers. This option is always on for HEAD requests. =item -E Print response status chain with full response headers. =item -d Do B<not> print the content of the response. =item -o <format> Process HTML content in various ways before printing it. If the content type of the response is not HTML, then this option has no effect. The legal format values are; C<text>, C<ps>, C<links>, C<html> and C<dump>. If you specify the C<text> format then the HTML will be formatted as plain C<latin1> text. If you specify the C<ps> format then it will be formatted as Postscript. The C<links> format will output all links found in the HTML document. Relative links will be expanded to absolute ones. The C<html> format will reformat the HTML code and the C<dump> format will just dump the HTML syntax tree. Note that the C<HTML-Tree> distribution needs to be installed for this option to work. In addition the C<HTML-Format> distribution needs to be installed for C<-o text> or C<-o ps> to work. =item -v Print the version number of the program and quit. =item -h Print usage message and quit. =item -a Set text(ascii) mode for content input and output. If this option is not used, content input and output is done in binary mode. =back Because this program is implemented using the LWP library, it will only support the protocols that LWP supports. =head1 SEE ALSO L<lwp-mirror>, L<LWP> =head1 COPYRIGHT Copyright 1995-1999 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 AUTHOR Gisle Aas <gisle@aas.no> =cut use strict; use warnings; my $progname = $0; $progname =~ s,.*[\\/],,; # use basename only $progname =~ s/\.\w*$//; # strip extension, if any require LWP; use URI; use URI::Heuristic qw(uf_uri); use Encode; use Encode::Locale; use HTTP::Status qw(status_message); use HTTP::Date qw(time2str str2time); # This table lists the methods that are allowed. It should really be # a superset for all methods supported for every scheme that may be # supported by the library. Currently it might be a bit too HTTP # specific. You might use the -f option to force a method through. # # "" = No content in request, "C" = Needs content in request # my %allowed_methods = ( GET => "", HEAD => "", POST => "C", PUT => "C", PATCH => "C", DELETE => "", TRACE => "", OPTIONS => "", ); my %options; # We make our own specialization of LWP::UserAgent that asks for # user/password if document is protected. { package # hide from PAUSE, $VERSION updaters RequestAgent; use strict; use warnings; use parent qw(LWP::UserAgent); sub new { my $self = LWP::UserAgent::new(@_); $self->agent("lwp-request/$LWP::VERSION "); $self; } sub get_basic_credentials { my ($self, $realm, $uri) = @_; if ($options{'C'}) { return split(':', $options{'C'}, 2); } elsif (-t) { my $netloc = $uri->host_port; print STDERR "Enter username for $realm at $netloc: "; my $user = <STDIN>; chomp($user); return (undef, undef) unless length $user; print STDERR "Password: "; system("stty -echo"); my $password = <STDIN>; system("stty echo"); print STDERR "\n"; # because we disabled echo chomp($password); return ($user, $password); } else { return (undef, undef); } } } my $method = uc(lc($progname) eq "lwp-request" ? "GET" : $progname); # Parse command line use Getopt::Long; my @getopt_args = ( 'a', # content i/o in text(ascii) mode 'm=s', # set method 'f', # make request even if method is not in %allowed_methods 'b=s', # base url 't=s', # timeout 'i=s', # if-modified-since 'c=s', # content type for POST, PUT and PATCH 'C=s', # credentials for basic authorization 'H=s@', # extra headers, form "Header: value string" # 'u', # display method and URL of request 'U', # display request headers also 's', # display status code 'S', # display whole chain of status codes 'e', # display response headers (default for HEAD) 'E', # display whole chain of headers 'd', # don't display content # 'h', # print usage 'v', # print version # 'p=s', # proxy URL 'P', # don't load proxy setting from environment # 'o=s', # output format ); Getopt::Long::config("noignorecase", "bundling"); unless (GetOptions(\%options, @getopt_args)) { usage(); } if ($options{'v'}) { require LWP; my $DISTNAME = 'libwww-perl-' . $LWP::VERSION; die <<"EOT"; This is lwp-request version $LWP::VERSION ($DISTNAME) Copyright 1995-1999, Gisle Aas. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. EOT } usage() if $options{'h'} || !@ARGV; # Create the user agent object my $ua = RequestAgent->new; # Load proxy settings from *_proxy environment variables. $ua->env_proxy unless $options{'P'}; $method = uc($options{'m'}) if defined $options{'m'}; if ($options{'f'}) { if ($options{'c'}) { $allowed_methods{$method} = "C"; # force content } else { $allowed_methods{$method} = ""; } } elsif (!defined $allowed_methods{$method}) { die "$progname: $method is not an allowed method\n"; } if ($options{'S'} || $options{'E'}) { $options{'U'} = 1 if $options{'E'}; $options{'E'} = 1 if $options{'e'}; $options{'S'} = 1; $options{'s'} = 1; $options{'u'} = 1; } if ($method eq "HEAD") { $options{'s'} = 1; $options{'e'} = 1 unless $options{'d'}; $options{'d'} = 1; } $options{'u'} = 1 if $options{'U'}; $options{'s'} = 1 if $options{'e'}; if (defined $options{'t'}) { $options{'t'} =~ /^(\d+)([smh])?/; die "$progname: Illegal timeout value!\n" unless defined $1; my $timeout = $1; if (defined $2) { $timeout *= 60 if $2 eq "m"; $timeout *= 3600 if $2 eq "h"; } $ua->timeout($timeout); } if (defined $options{'i'}) { my $time; if (-e $options{'i'}) { $time = (stat _)[9]; } else { $time = str2time($options{'i'}); die "$progname: Illegal time syntax for -i option\n" unless defined $time; } $options{'i'} = time2str($time); } my $content; my $user_ct; if ($allowed_methods{$method} eq "C") { # This request needs some content unless (defined $options{'c'}) { # set default content type $options{'c'} = ($method eq "POST") ? "application/x-www-form-urlencoded" : "text/plain"; } else { die "$progname: Illegal Content-type format\n" unless $options{'c'} =~ m,^[\w\-]+/[\w\-.+]+(?:\s*;.*)?$,; $user_ct++; } print STDERR "Please enter content ($options{'c'}) to be ${method}ed:\n" if -t; binmode STDIN unless -t or $options{'a'}; $content = join("", <STDIN>); } else { die "$progname: Can't set Content-type for $method requests\n" if defined $options{'c'}; } # Set up a request. We will use the same request object for all URLs. my $request = HTTP::Request->new($method); $request->header('If-Modified-Since', $options{'i'}) if defined $options{'i'}; for my $user_header (@{$options{'H'} || []}) { my ($header_name, $header_value) = split /\s*:\s*/, $user_header, 2; $header_name =~ s/^\s+//; if (lc($header_name) eq "user-agent") { $header_value .= $ua->agent if $header_value =~ /\s\z/; $ua->agent($header_value); } else { $request->push_header($header_name, $header_value); } } #$request->header('Accept', '*/*'); if ($options{'c'}) { # will always be set for request that wants content my $header = ($user_ct ? 'header' : 'init_header'); $request->$header('Content-Type', $options{'c'}); $request->header('Content-Length', length $content); # Not really needed $request->content($content); } my $errors = 0; sub show { my $r = shift; my $last = shift; print $method, " ", $r->request->uri->as_string, "\n" if $options{'u'}; print $r->request->headers_as_string, "\n" if $options{'U'}; print $r->status_line, "\n" if $options{'s'}; print $r->headers_as_string, "\n" if $options{'E'} or $last; } # Ok, now we perform the requests, one URL at a time while (my $url = shift) { # Create the URL object, but protect us against bad URLs eval { if ($url =~ /^\w+:/ || $options{'b'}) { # is there any scheme specification $url = URI->new(decode(locale => $url), decode(locale => $options{'b'})); $url = $url->abs(decode(locale => $options{'b'})) if $options{'b'}; } else { $url = uf_uri($url); } }; if ($@) { $@ =~ s/ at .* line \d+.*//; print STDERR $@; $errors++; next; } $ua->proxy($url->scheme, decode(locale => $options{'p'})) if $options{'p'}; # Send the request and get a response back from the server $request->uri($url); my $response = $ua->request($request); if ($options{'S'}) { for my $r ($response->redirects) { show($r); } } show($response, $options{'e'}); unless ($options{'d'}) { if ($options{'o'} && $response->content_type eq 'text/html') { eval { require HTML::Parse; }; if ($@) { if ($@ =~ m,^Can't locate HTML/Parse.pm in \@INC,) { die "The HTML-Tree distribution need to be installed for the -o option to be used.\n"; } else { die $@; } } my $html = HTML::Parse::parse_html($response->content); { $options{'o'} eq 'ps' && do { require HTML::FormatPS; my $f = HTML::FormatPS->new; print $f->format($html); last; }; $options{'o'} eq 'text' && do { require HTML::FormatText; my $f = HTML::FormatText->new; print $f->format($html); last; }; $options{'o'} eq 'html' && do { print $html->as_HTML; last; }; $options{'o'} eq 'links' && do { my $base = $response->base; $base = $options{'b'} if $options{'b'}; for (@{$html->extract_links}) { my ($link, $elem) = @$_; my $tag = uc $elem->tag; $link = URI->new($link)->abs($base)->as_string; print "$tag\t$link\n"; } last; }; $options{'o'} eq 'dump' && do { $html->dump; last; }; # It is bad to not notice this before now :-( die "Illegal -o option value ($options{'o'})\n"; } } else { binmode STDOUT unless $options{'a'}; print $response->content; } } $errors++ unless $response->is_success; } exit $errors; sub usage { die <<"EOT"; Usage: $progname [-options] <url>... -m <method> use method for the request (default is '$method') -f make request even if $progname believes method is illegal -b <base> Use the specified URL as base -t <timeout> Set timeout value -i <time> Set the If-Modified-Since header on the request -c <conttype> use this content-type for POST, PUT, PATCH -a Use text mode for content I/O -p <proxyurl> use this as a proxy -P don't load proxy settings from environment -H <header> send this HTTP header (you can specify several) -C <username>:<password> provide credentials for basic authentication -u Display method and URL before any response -U Display request headers (implies -u) -s Display response status code -S Display response status chain (implies -u) -e Display response headers (implies -s) -E Display whole chain of headers (implies -S and -U) -d Do not display content -o <format> Process HTML content in various ways -v Show program version -h Print this message EOT }