/l3/users/eb/2009/linux1/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 |
|
#find /usr -ls | awk '{print $6}' | sort | uniq -c
1 crontab 4 lp 4 mail 1 messagebus 5 polkituser 43482 root 2 shadow 1 src 1 ssh 48 staff 2 tty 2 utmp |
#find /usr -ls | awk '{print $6}' | sort -u
crontab lp mail messagebus polkituser root shadow src ssh staff tty utmp |
#find /usr -ls | awk '{print $6}' | sort | uniq -c
1 crontab 4 lp 4 mail 1 messagebus 5 polkituser 43482 root 2 shadow 1 src 1 ssh 48 staff 2 tty 2 utmp |
#hexdump -C /bin/ls | less
|
#hexdump -C /bin/ls | tr 1-6 ' ' | less
|
#hexdump /bin/ls | tr 1-6 ' ' | less
|
#hexdump /bin/ls | tr 01-3 ' ' | while read line; do echo $line; sleep1; done
4b 8 5 4c7 4 e8 f e ffff 5c89 bash: sleep1: команда не найдена 4c 4 4 489 e8 4 f ffff d8b 4 8 6 bash: sleep1: команда не найдена 4d 44c7 8 4 5 44c7 4 4 d6 8 8 5 bash: sleep1: команда не найдена 4e 4c7 4 e8 f e ffff 5c89 4 4 bash: sleep1: команда не найдена 4f 489 e8 4 f f4 ffff d8b 4 8 6 44c7 bash: sleep1: команда не найдена ... bash: sleep1: команда не найдена 9 74e9 fffe baff b 5 e9 fffe baff bash: sleep1: команда не найдена 9 9 748d 6 4 e9 fffe baff d bash: sleep1: команда не найдена 9 b68d e9 fffe 8dff d 7a bash: sleep1: команда не найдена 94 ba 8d 76 e9 fffe baff 6 bash: sleep1: команда не найдена 95 b68d e9 fffe baff a |
#hexdump /bin/ls | tr 01-3 ' ' | while read line; do echo $line; sleep 1; done
457f 464c 9b8 8 4 4 949c 4 8 8 b a 6 4 8 4 8 4 4 8 4 8 4 5 5 4 4 8 4 8 4 6 8 4 8 4 4 7 8 8 4 8 8 8 4 8 ec 8 ec 5 9 9 8 6 a 8 6 cc 6 b 9 4 4 8 6 c 4 8 6 e8 e8 6 d 4 4 48 8 48 8 4 e 8 48 8 4 4 f 4 e55 6474 8 8 6 8 6 c c 4 ^C |
#hexdump /bin/ls | tr 01-3 ' ' | while read line; do echo $line; sleep 0,1; done
sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. cb 6c74 6 6f 6c6 65 6 6d 747 776f 6 sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. cc 747 6e7 6d6 7 7 6f 6974 646e 7 sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. cd 7 74 6 7 7 68 66 6c66 7 75 5f68 6e75 sleep: неверный временной интервал `0,1' ... Попробуйте `sleep --help' для получения более подробного описания. f9 7 74 6d6 7 5f5f 747 747 756f 6c6c sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. fa 695f 746e 7 65 6 6e 6c 6 74 6567 7 74 sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. fb 7 67 7 5f5f 696c 6 6 7 5f 6 74 747 sleep: неверный временной интервал `0,1' Попробуйте `sleep --help' для получения более подробного описания. |
#hexdump /bin/ls | tr 01-3 ' ' | while read line; do echo $line; sleep 0.1; done
457f 464c 9b8 8 4 4 949c 4 8 8 b a 6 4 8 4 8 4 4 8 4 8 4 5 5 4 4 8 4 8 4 6 8 4 8 4 4 7 8 8 4 8 8 8 4 8 ec 8 ec 5 9 9 8 6 ... 7e ad 7f d 8 4d 8 6 8 4 8 d6 84 4 85 4a 86 6 ^C |
#cat /dev/urandom | tr -dc a-z
|
#cat /dev/urandom | strings
$SxK &Lq6* 8| F s@.Y AWX8Ydn *4;P %~3e c=< TWd| :hqS ... @Crh g`u/ )5/j J58e z&A2- $\4= FaVy p!Z1 ]@EQ 0iU1 |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-10
Tk1rxU2CPa ESR4R69ZDW L4nFlirnBe 0tEkd3FAfr EtOAoDMmrR 8lBKYyqCd8 xkEzXHOXRP Rx30vF35sH lo8hYfAcH2 hyO3iiXbbc ... WXQFStrdSN pKxeauVl72 EwiVx0kDQJ uBgPJMJQiq 2dkyRXEmu4 p3MMFr2BYC njcC8FzQoz DvOJ4sb3JX GPXuSChCPK vS7kstpvGe |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8
KoCFy YaEcJObO AXynvmFZ 8RzuihiH mF2Z41bB KtpfmLTs GhXp5JK0 Jx v3gHH5b2 ReL4WQM1 ... xsADWRsO vVBymYro qwWLRyUK Cbb4pkzJ mJU8QQbE rHAbh EeeaDIW4 jXwVgdqd aWddMkIf ZPUeKDvQ |
#hexdump /bin/ls | tr 01-3 ' ' | tr ' ' . | while read line; do echo $l
> ine | tr . ' '; sleep 0.1; done bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена ... bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена bash: ine: команда не найдена ^C |
#hexdump /bin/ls | tr 01-3 ' ' | tr ' ' . | while read line; do echo $line | tr . ' '; sleep 0.1; done
457f 464c 9b8 8 4 4 949c 4 8 8 b a 6 4 8 4 8 4 4 8 4 8 4 5 5 4 4 8 4 8 4 6 8 4 8 4 4 7 8 8 4 8 8 8 4 8 ec 8 ec 5 9 9 8 6 ... 4 e 4 b 4 44 c 45 8 7 46 68 44 47 66 f 48 8 9 49 c 5b 4a 4 6 ^C |
#man at| less
|
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 | grep ........
2e6lo2ew YwSuZCrW gDu2cw1N x9rzgJfc ACuOFypF BBj64yFw aSSiyxPi fzPnvDEu c7I0mjcO 4bJ7Tmbw ... R8HGtbXr S8Y2CVFU pYkswSDo Qi6Jouxb GJERVCBA XuDaTb9s IUaV1BZe YCTxKYRR fgysIrjy gDevrwgc |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 | grep -i eb
oEbmGmKu enHxEbBy 1EBGEu1b pMEB6cRE jQ5bEBZh nEBiFiYD GeBDt2i keBccJjk CeBpKwbO 4jtEBqAS ... VyGeb80o wSuRAmEb AMkkEbN5 IgnEbobk deBZiiNb x4H7EbF1 32aO7EbR xxo8eB8N ^Z [4]+ Stopped cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 | grep -i eb |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 | grep -i ban
xxVbAndW N38QbANJ 2wdbantd zjVvbAN4 FheuBANl YWbaNCtz RXXcdbAn BanaQQTB BanVoKHp zV9AZBan ... RMe2BAnj JGyJMBaN 4i1CbANb 0dcxBAnT 96Me6BaN M1Z7BaNS M7GRlban imbanPs6 ^Z [5]+ Stopped cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 | grep -i ban |
#kill 6433, 7065
bash: kill: 6433,: arguments must be process or job IDs |
#ps -aux | grep cat
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 6433 0.1 0.0 4792 524 pts/12 T 15:17 0:01 cat /dev/urandom root 6443 0.0 0.0 4792 528 pts/12 T 15:17 0:00 cat /dev/urandom root 7065 4.3 0.0 4792 528 pts/12 T 15:43 0:06 cat /dev/urandom root 7076 25.6 0.0 4792 524 pts/12 T 15:44 0:27 cat /dev/urandom root 7104 0.0 0.0 4908 768 pts/12 S+ 15:46 0:00 grep cat root 23537 0.0 0.0 4792 496 pts/12 T 14:23 0:00 cat |
#kill -9 6433
[2]+ Stopped cat /dev/urandom | tr -dc a-zA-Z0-9'\n' | cut -c 1-8 |
#ps -aux | grep cat
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 6443 0.0 0.0 4792 528 pts/12 T 15:17 0:00 cat /dev/urandom root 7065 3.6 0.0 4792 528 pts/12 T 15:43 0:06 cat /dev/urandom root 7076 20.4 0.0 4792 524 pts/12 T 15:44 0:27 cat /dev/urandom root 7120 0.0 0.0 4908 768 pts/12 S+ 15:46 0:00 grep cat root 23537 0.0 0.0 4792 496 pts/12 T 14:23 0:00 cat |
#kill -9 6433
bash: kill: (6433) - Нет такого процесса |
#ps -aux | grep cat
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 6443 0.0 0.0 4792 528 pts/12 T 15:17 0:00 cat /dev/urandom root 7065 3.4 0.0 4792 528 pts/12 T 15:43 0:06 cat /dev/urandom root 7076 18.7 0.0 4792 524 pts/12 T 15:44 0:27 cat /dev/urandom root 7136 0.0 0.0 4908 756 pts/12 R+ 15:47 0:00 grep cat root 23537 0.0 0.0 4792 496 pts/12 T 14:23 0:00 cat |
#ps -ef | grep cat
root 6443 18126 0 15:17 pts/12 00:00:00 cat /dev/urandom root 7065 18126 2 15:43 pts/12 00:00:06 cat /dev/urandom root 7076 18126 15 15:44 pts/12 00:00:27 cat /dev/urandom root 7145 18126 0 15:47 pts/12 00:00:00 grep cat root 23537 18126 0 14:23 pts/12 00:00:00 cat |
#kill 6443
|
#ps -ef | grep cat
root 6443 18126 0 15:17 pts/12 00:00:00 cat /dev/urandom root 7065 18126 2 15:43 pts/12 00:00:06 cat /dev/urandom root 7076 18126 13 15:44 pts/12 00:00:27 cat /dev/urandom root 7161 18126 0 15:47 pts/12 00:00:00 grep cat root 23537 18126 0 14:23 pts/12 00:00:00 cat |
#kill 18126
|
#ps -ef | grep cat
root 6443 18126 0 15:17 pts/12 00:00:00 cat /dev/urandom root 7065 18126 2 15:43 pts/12 00:00:06 cat /dev/urandom root 7076 18126 12 15:44 pts/12 00:00:27 cat /dev/urandom root 7184 18126 0 15:48 pts/12 00:00:00 grep cat root 23537 18126 0 14:23 pts/12 00:00:00 cat |
#grep -r 10.0.35.100 /etc
|
#grep -r 192.168.15.1 /etc
/etc/network/interfaces: address 192.168.15.1 |
#grep -rl 192.168.15.1 /etc
/etc/network/interfaces |
#strings /proc/core
strings: '/proc/core': No such file |
#strings /proc/kcore | less
|
#strings /proc/kcore | grep pass
passwd.1.gz chpasswd.8.gz passwd.5.gz passwd.5.gz gpasswd.1.gz passwd.1.gz gpasswd.1.gz passwd.1.gz passwd.5.gz chpasswd.8.gz ... sshpam_auth_passwd sshpam_auth_passwd sshpam_passwd_conv sshpam_passwd_conv sshpam_passwd_conv sshpam_passwd_conv sshpam_auth_passwd passwd gpasswd ^C |
#cat /etc/passwd | sed s@/bin/sh@/bin/bash
sed: -e выражение #1, символ 19: незавершенная команда `s' |
#cat /etc/passwd | sed s@/bin/sh@/bin/bash@/
sed: -e выражение #1, символ 21: неизвестный модификатор к `s' |
#cat /etc/network/interfaces | sed s/192.168.15.1/192.168.15.2/
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.15.2 netmask 255.255.255.0 network 192.168.15.0 broadcast 192.168.15.255 gateway 192.168.15.254 |
#grep -rl 192.168.15.1 /etc
/etc/network/interfaces |
#grep -rl linux1 /etc
/etc/motd /etc/hostname |
|