SMT

Resource

Center

 

Coming Soon

Security Management Technology Center Develop Elearning, FAQ , New Center...

SMT BLOG

chatting softwares always use the application layer to send and recieve messages that include using tcp or udp protocols for deleviery , today we will explain how to send messages using Ping ( ICMP protocol ) which is layer 3 protocol using Scapy .

What is scapy ?

Scapy is able to forge and decode packets of several protocols, send and capture them, match requests and replies, and much more. It can be used to handle most network tasks such as scanning, tracerouting, probing, attacks, network discovery, to name a few.

to install scapy type in cmd :

$ pip install scapy

to start scapy type in cmd :

$ scapy

in scapy you can use : >>> ls() ---> list protocols/layers >>> lsc() ---> list commands >>> conf ---> Display configurations >>> help(sniff) --> Help for a specific command

 

How to use scapy ?

 Let's start by specifying the packet's source IP and then its destination IP. This type of information goes in the IP header, which is a layer 3 protocol in the 0SI model:

Screenshot from 2016 02 28 21 35 17


now lets make simple icmp packet that will go from host 192.168.1.10 to 192.168.1.1 in this video :







** Disclaimer **

Any actions and or activities related to the material contained within this Website is solely your responsibility.The misuse of the information in this website can result in criminal charges brought against the persons in question. The authors will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this website to break the law.

This site contains materials that can be potentially damaging or dangerous. If you do not fully understand something on this site, then GO OUT OF HERE! Refer to the laws in your province/country before accessing, using,or in any other way utilizing these materials.These materials are for educational and research purposes only.Do not attempt to violate the law with anything contained here. If this is your intention, then LEAVE NOW! Neither administration of this server, the authors of this material, or anyone else affiliated in any way, is going to accept responsibility for your actions. Neither the creator is responsible for the comments posted on this website.

Newsletter

Subscribe to our newsletter and stay updated on the latest news and special offers!
Please wait