## create root user add user dardi sudo ls touch > >> seq 1 100 seq 1 100 >tmp.txt rm ping -c 1 ip for i in $(seq 1 100); do ping -c 1 1.1.1.$i ;done dig google.com host google.com whois google.com netstat netstat -lntp who ps -aux nc -lvp 4444 fuser -k 4444/tcp pkill tmux kill PID killall service appache2 start /val/www/html dirb ( requires a wordlist, common.txt) wc common.txt ##count cat common.txt | grep "wp-admin" cat /var/log/appache2/access.log ##windows more filename #to read net user ##view users net user a /del ##del user net user a b /add ##add user net localgroup administrators a /add ##add to group net user a #read info for user net user a new pass ##me ndrru pass net user a * ##hiden me shkru passin reg save hklm\sam c:\sam reg save hklm\system c:\system du filename ##size pwdump system sam (creddump7 pth-winexe -U Workgroup/Administrator%5274a8ac31638590:B206D78784758497FE2540F99BDF7BF0 //192.168.1.8 cmd How to restart network in Ubuntu Server: /etc/init.d/networking restart ## script based command service restart networking ## Use service to run a System V init script such as networking. systemctl restart networking ## Restart networking for the latest version of Ubuntu server. /sbin/service nessusd start updatedb --build a local database of all files on the filesystem locate --to easily query this database when looking for local files. find -- find / -‐name sbd* which -- which sbd SSH Service service ssh start netstat -‐antp|grep sshd update-‐rc.d ssh enable HTTP Service service apache2 start netstat -‐antp |grep apache update-‐rc.d apache2 enable cat file.ext | grep text_looking for cat csf.conf | grep TCP_OUT sudo pip2 uninstall knock /etc/init.d/networking status|start|stop ifconfig eth1 x.x.x.x netmask 255.255.255.0 up apt-get install apl apt remove apktool apt-get update apt-get upgrade apt full-upgrade software-name —version chmod +x apktool && chmod +x apktool.jar whereis apktool python -m SimpleHTTPServer 80