/l3/users/27-07-2009/nt-lnet/debian7.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
$sudo invoke-rc.d openbsd-inetd restart
Restarting internet superserver: inetd. |
$sudo netstat -lnp | less
|
$nc 127.0.0.1
![]() [user@debian7:~]$ nc 127.0.0.1 bash nobody@debian7:/$ ls bin boot dev etc home initrd lib lost+found ... touch: невозможно выполнить touch для `/home/user/test': Permission denied nobody@debian7:/$ sudo /etc/init.d/openbsd-inetd restart We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: nobody@debian7:/$ exit exit |
$grep bash /etc/services
bash 65533/tcp |
$nc 192.168.16.7
[user@debian7:~]$ nc 127.0.0.1 65533 nobody@debian7:/$ exit exit |
$telnet 192.168.16.7 65533
![]() Trying 192.168.16.7... Connected to 192.168.16.7. Escape character is '^]'. Connection closed by foreign host. |
$vim /etc/hosts.allow
|
$vim /etc/hosts.deny
|
$vim /etc/hosts.allow
|
$ifconfig
![]() bash: ifconfig: command not found |
$sudo
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:00:07 inet addr:192.168.16.7 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:45170 errors:0 dropped:0 overruns:0 frame:0 TX packets:61127 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5299258 (5.0 MiB) TX bytes:16053259 (15.3 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:157 errors:0 dropped:0 overruns:0 frame:0 TX packets:157 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10489 (10.2 KiB) TX bytes:10489 (10.2 KiB) |
$telnet 192.168.16.7 65533
![]() Trying 192.168.16.7... Connected to 192.168.16.7. Escape character is '^]'. Connection closed by foreign host. |
$telnet 192.168.16.7 65533
![]() Trying 192.168.16.7... Connected to 192.168.16.7. Escape character is '^]'. Connection closed by foreign host. |
$telnet 192.168.16.7 65533
![]() Trying 192.168.16.7... Connected to 192.168.16.7. Escape character is '^]'. Connection closed by foreign host. |
$sudo
#:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based services #:HAM-RADIO: amateur-radio services #:OTHER: Other services #vnc1 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query 127.0.0.1 -oncee -geometry 1024x768 -depth 24 bash stream tcp nowait nobody /bin/bash bash -i "/etc/inetd.conf" 40L, 1214C записано |
$telnet 192.168.16.7 65533
![]() NC(1) NC(1) NAME nc - TCP/IP swiss army knife SYNOPSIS nc [-options] hostname port[s] [ports] ... nc -l -p port [-options] [hostname] [port] DESCRIPTION netcat is a simple unix utility which reads and writes data across net‐ work connections, using TCP or UDP protocol. It is designed to be a reliable "back-end" tool that can be used directly or easily driven by ... SEE ALSO /usr/share/doc/netcat/README.gz AUTHOR This manual page was written by Joey Hess <joeyh@debian.org> and Robert Woodcock <rcw@debian.org>, cribbing heavily from Netcat’s README file. Netcat was written by a guy we know as the Hobbit <hobbit@avian.org>. NC(1) nobody@debian7:/$ nobody@debian7:/$ exit exit Connection closed by foreign host. |
$man nc
|
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
|
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$:wq!
![]() bash: :wq!: command not found |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$sudo vim /etc/hosts.deny
![]() |
$screen
|
$sudo vim /etc/inetd.conf
|
$/sbin/ifconfig -a
![]() |
$sudo /etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd. |
$sudo netstat -lnp | less
|
$nc 192.168.16.7 65533
|
$nc 192.168.16.7 653
![]() (UNKNOWN) [192.168.16.7] 65333 (?) : Connection refused |
$nc 192.168.16.7 65533
|
$nc 192.168.16.7 65533
|
$sudo /etc/init.d/openbsd-inetd restart
#:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based servicesndard services. 1,1 Наверху #:HAM-RADIO: amateur-radio services #:OTHER: Other services -geometry 1024x768 -depth 24 nowait root /bin/bash bash -i 40,17 Внизу "/etc/inetd.conf" 40L, 1212C записано Restarting internet superserver: inetd. |
|