Uh oh. Looks like your using an ad blocker.
Our site is support by ads that help to pay our hosting costs. Please disable or whitelist us within your ad blocker to help us keep the site online.
All money generate by ads and donations is used to pay the hosting costs of the site.
View Thread
Author | Python - Port scanning. | haklite Member

Posts: 50 Location: A node too far
Joined: 11.09.06 Rank: Apprentice | | Hi All,
So, I've decided recently that Id start into python due to its flexibility and many areas of application.
I'm currently looking into port scanning.
I have written my own scanner (fully working) which I assume is full tcp connect, but I want to investigate syn, ack scans etc, but from what I've come across so far seems to suggest Id have to use scapy, or some other collaboration in order to go beyond full connect scans. :/
Can anyone clarify if this is the case?
I'm not in it for the purpose of creating a scanner, because that would be pointless, what I want is to understand and learn pythons full capabilities with regards sockets and networks and then utilize it.
Any help much appreciated 

In the words of DR-K
"When people asked me why I hacked, I had a standard response: Because its there.Because I can.Because its fun."
|
 |
Author | RE: Python - Port scanning. | haklite Member

Posts: 50 Location: A node too far
Joined: 11.09.06 Rank: Apprentice | | Nobody???!

In the words of DR-K
"When people asked me why I hacked, I had a standard response: Because its there.Because I can.Because its fun."
|
 |
Author | RE: Python - Port scanning. | lolly Member

Posts: 24 Location:
Joined: 02.08.12 Rank: Wiseman Warn Level: 30
| | You don't HAVE to use scapy, but it would definitely make your life a lot easier. If you insist on modeling the packets yourself, look through the RFC for the packet type of whatever scan you're trying to implement.
I've used scapy a few times in the past, and I thought it worked really well though. |
 |
Author | RE: Python - Port scanning. | haklite Member

Posts: 50 Location: A node too far
Joined: 11.09.06 Rank: Apprentice | | Thanks Lolly, that's all I needed to hear. I may resort to scapy eventually, but my ultimate goal is to work entirely off python for now and learn its full potential alone.
I will battle through the RFCs for now and see how it goes.
Thanks for your response, much appreciated 

In the words of DR-K
"When people asked me why I hacked, I had a standard response: Because its there.Because I can.Because its fun."
|
 |
Author | RE: Python - Port scanning. | lolly Member

Posts: 24 Location:
Joined: 02.08.12 Rank: Wiseman Warn Level: 30
| | One more thing: wireshark is your friend. Use it to make sure you are sending and receiving the correct packets. |
 |
|