How to create python network tool

Hey guys this is first post of me.I have been coding python for 1 years and also i am interested in network security.I want to create my own network tools which scans port , detect victim operation system and create TCP , UDP , IP packet.I learned socket module but i falied.I want to take your advice what should i do ? Should i use module (nmap , scapy etc.) or is there any way ?
(Sorry for bad English)

Something like this is better asked in IRC. Also read the Code of Conduct for what stuff is to be posted on site.

This topic was automatically closed after 30 days. New replies are no longer allowed.