forked from mariusv/Gray-Hacker-and-PenTesting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some readmes, added some inits, partially done writing the scapy …
…scripts
- Loading branch information
Mari Wahl
committed
Dec 24, 2014
1 parent
ffb92e0
commit d29d4e1
Showing
21 changed files
with
107 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Network and 802.11 | ||
|
||
## Subfolders: | ||
My resources in networking and wireless hacking. | ||
|
||
## Packages: | ||
|
||
### 802.11 | ||
|
||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
__author__ = "bt3" | ||
|
||
from scapy.all import * | ||
|
||
send(IP(dst='192.168.1.114')/UDP()/fuzz(DNS()), inter=1,loop=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python | ||
|
||
__author__ = "bt3" | ||
|
||
from scapy.all import * | ||
|
||
def save(): | ||
a = sniff(filter='icmp', iface='wlp1s0', timeout=10, count=3, prn=lambda x:x.summary()) | ||
wrpcap('packets.pcap', a) | ||
|
||
def open(): | ||
p = rdpcap('packets.pcap', p) | ||
p.show() | ||
|
||
def scan(): | ||
res, unans = sr( IP(dst='192.168.1.114')/TCP(flags='S', dport=(1, 1024))) | ||
print res.summary() | ||
|
||
scan() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
|
||
__author__ = "bt3" | ||
|
||
from scapy.all import * | ||
|
||
# Set port & MAC address | ||
FAKE_IP = "10.0.4.4" # Use something that nobody else is going to have | ||
MAC_ADDR = "60:67:20:eb:7b:bc" # My actual MAC address | ||
|
||
# Broadcast our fake IP address | ||
srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(psrc=FAKE_IP, hwsrc=MAC_ADDR)) | ||
|
||
source_port += 1 | ||
ip_header = IP(dst=dest, src=FAKE_IP) # Set the source port to | ||
ans = sr1(ip_header / TCP(dport=80, sport=source_port, flags="S", seq=random.randint(0, 1000))) # SYN | ||
# ans is the SYN-ACK | ||
reply = ip_header / TCP(dport=80, sport=source_port, seq=ans.ack, ack = ans.seq + 1, flags="A") # ACK | ||
send(reply) # Send ACK | ||
pkt = ip_header / TCP(dport=80, sport=source_port, seq=reply.seq, flags="AP") / "GET / HTTP/1.1\r\n\r\n" # Send our real packet | ||
send(pkt) | ||
|
||
|
||
ip = IP(src='192.168.1.114', dst='192.168.1.25') | ||
SYN = TCP(sport=1024, dport=80, flags='S', seq=12345) | ||
packet = ip/SYN | ||
|
||
SYNACK = sr1(packet) | ||
ack = SYNACK.seq + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python | ||
|
||
__author__ = "bt3" | ||
|
||
from scapy.all import * | ||
|
||
HOST ='www.google.com' | ||
|
||
def tr(): | ||
print traceroute(HOST) | ||
|
||
def pi(): | ||
print arping('192.168.1.114') | ||
|
||
#pi() | ||
|
||
#tr() | ||
|
||
print sniff(iface="wlp1s0",prn=lambda x:x.sprintf("{Dot11Beacon:%Dot11.addr3%\t%Dot11Beacon.info%\t%PrismHeader.channel%\tDot11Beacon.cap%}")) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.