Introduction to Scapy

Поделиться
HTML-код
  • Опубликовано: 19 июл 2016
  • This is a demonstration of Scapy for python using an Ubuntu VM
    Note:
    In the sniff example, I stated that I must have "messed up" the filter parameter. Upon review of the video, I noticed that I did not mess it up. What I did not notice is that the sniffer immediately filled, and I mistook that for it not working. So the parameter "filter="port 80"" should work for you at home who are following along.

Комментарии • 64

  • @fusiondew
    @fusiondew 5 лет назад +2

    Just found your channel, you should keep going!! It helps a lot and not a lot of people do what you’re doing. You’ll get huge!

  • @WinwinLS
    @WinwinLS 5 лет назад +1

    Excellent introductory overview of Scapy, good job! :)

  • @kaysudheera
    @kaysudheera 3 года назад +2

    Notes...
    ICMP - sr1(IP(dst="www.google.com")/ICMP())
    TCP - sr1(IP(dst="www.google.com")/TCP(dport=80))
    sr(IP(dst="www.google.com")/TCP(dport=[20,21,23,80,443]),timeout=1)
    timeout = time to wait after the last packet has been sent
    retry = if packet is unanswered the amount of times to retry
    inter = time to wait inbetween two packets (if limited rate of answers receivable)
    DNS - sr1(IP(dst="Your Local Router Here")/UDP()/DNS(rd=1,qd=DNSQR(qname="www.google.com")))
    rd = Recursion Desired
    qd = Query Domain
    DNSQR = DNS Query Record
    qname = name of what you wish to query
    ARP - Pinging arping("10.0.0.*")
    nifty tool that can be used to discover clients on the network
    TRACEROUTE - traceroute(["www.google.com"], maxttl=20)
    scapy's traceroute does not use ICMP. It uses TCP (different from standard traceroute)
    scapy's traceroute sends all the packets at one time and does not wait for individual responses to come, thus the importance of maxttl
    Sniffing - Sniff() will read all interfaces and scan all ports
    parameters
    iface="eth0" specify interface
    filter="icmp" only collect icmp protocol

  • @hadeus113
    @hadeus113 5 лет назад +1

    Thanks for this tutorial! Scapy seems less daunting now.

  • @lightyagami-rk2my
    @lightyagami-rk2my 2 года назад

    Just found your channel .. Please continue.

  • @bute7743
    @bute7743 2 года назад

    ilove this scapy video, you should keep going!!!

  • @wolfcircle2503
    @wolfcircle2503 6 лет назад +1

    Superb job mate..I really appreciate if you can share the power point presentation and your notes.

  • @kjuarez29
    @kjuarez29 2 года назад

    Great video. Thank you for posting.

  • @jarrettrus26
    @jarrettrus26 3 года назад

    Good job man! better than any script kiddies tuts on youtube

  • @danielpollithy3696
    @danielpollithy3696 7 лет назад +2

    Good job!

  • @Flameoflove01
    @Flameoflove01 Год назад

    Interesting Explanation

  • @AlHoussem
    @AlHoussem 5 лет назад

    Nice tutorial, Thanks

  • @mabsoutachraf2260
    @mabsoutachraf2260 3 года назад

    Continue my friend 👍

  • @ElliyahuRosha
    @ElliyahuRosha 4 года назад

    Wow! That was great!!

  • @asmodeus4310
    @asmodeus4310 3 года назад

    Loved the video

  • @automotiveprogramming
    @automotiveprogramming 5 лет назад +1

    Good job, could you post the cheat sheet that you get on the screen for your presentation?

  • @yoavshaham4731
    @yoavshaham4731 7 лет назад

    the filter is lfilter :-) really good video

  • @booblebablo5548
    @booblebablo5548 7 лет назад

    Thank you so much

  • @mmai9186
    @mmai9186 7 лет назад +2

    nice tutorial. you should do more!

    • @schliengerk
      @schliengerk 7 лет назад

      n yc pick a topic you're interested in.

  • @prishitamukherjee491
    @prishitamukherjee491 2 года назад

    Loved the video , thank you. can you suggest me a way to craft traffic generation

  • @KhaledHM-py9ee
    @KhaledHM-py9ee 6 лет назад

    thank you bro

  • @xPinoyTribal
    @xPinoyTribal 6 лет назад

    I have a question. So in my house, I have my Centralized Air Conditioner connected our Wi-Fi. There is an app I have on my phone that allows me to control the temperature. Now my question is, is it possible for me to send a crafted packet to my Centralized AC, to control it? How would I go about experimenting with this...Thanks

    • @DaRealNim
      @DaRealNim 6 лет назад

      Hello, this maybe is a bit late, but you basically have two possibilities. 1st one, reverse engineer the app that allows you to control your air conditioner, and find the piece of code that sends the network packets, look at how it looks like, then craft a similar one. 2nd option, sniff the packets coming from your phone with wireshark or tcpdump or something, control your air conditioner with the app, and analyze the packet you just sniffed. You have several tutorials of people doing this online

  • @Egzenix
    @Egzenix 4 года назад

    Could you craft a packet that for example, that would change something in online game?

  • @AhmedShalaby
    @AhmedShalaby 7 лет назад

    Great work Kurtis! Can you share the notepad file that was containing the example commands?

    • @kschl012
      @kschl012  7 лет назад +1

      Ahmed Shalaby I will share it later tonight.

    • @kschl012
      @kschl012  7 лет назад +1

      Ahmed Shalaby, I am very sorry... I do not have access to the file any longer. I suppose I deleted it after the tutorial. I encourage you to pause the video and copy it yourself as it should only take a few minutes to get it down.
      I appreciate your praise and hope you will check out any future videos I may do.

    • @AhmedShalaby
      @AhmedShalaby 7 лет назад

      Never mind Kurtis, I'll write it as you said, I really appreciate your concern. Thank you

  • @afsarabenazir8558
    @afsarabenazir8558 4 года назад

    Doing packet = sr1(IP(dst="")/UDP()/DNS(rd=1,qd=DNSQR(qname="www.google.com")))
    gives 0 unanswered packets
    = 10.0.0.2
    and packet.summary() returns an error, why??

  • @sirinesayadi2137
    @sirinesayadi2137 7 лет назад

    good work , thank you , can you help me about manipulating the time between servals packets to send ?

    • @kschl012
      @kschl012  7 лет назад +1

      Hey, I am glad you liked the video. It has been a while since I have worked with scappy, can you please clarify what it is you are trying to do and I will help you to the best of my ability.

    • @sirinesayadi2137
      @sirinesayadi2137 7 лет назад

      Kurtis Schlienger thank you ,I want to create covert timing channel to detect it, covert timing channel are created by manipulate the time between packets to send to transmit a message, can you help me please to create it.

  • @Vindictive7
    @Vindictive7 7 лет назад

    I get following error if to try launch scapy:
    sergey@sergey-VirtualBox:~$ sudo scapy
    sudo: scapy: command not found
    what I'm doing wrong?

    • @hydratech101
      @hydratech101 6 лет назад

      hello i am assuming you did not install scapy ... If in case you have not installed scapy you can just check their github out github.com/secdev/scapy/ just check the read me ..... or easier way "sudo apt-get install scapy "

  • @MachinamasProduction
    @MachinamasProduction 5 лет назад

    A little late on my part, but great video

  • @Bruh-sp2bj
    @Bruh-sp2bj 7 лет назад

    i tried the arp ping on my network yet i got no response
    i yped in arping("192.168.0.*") and got no responses is there a reason for this? is it a problem with my machine or wireless card?

    • @kschl012
      @kschl012  7 лет назад

      Try doing a standard ping from your terminal. Additionally do "arp /a" and let me know if the arp table comes up empty.

    • @dopamine5071
      @dopamine5071 6 лет назад

      I assume that you're using virtualbox's machine. You need to change your network adapter in the settings.
      I forgot to change from NAT to Bridged adapter and, thus, had the same problem as you.

    • @muhammadzargham6718
      @muhammadzargham6718 3 года назад

      try it with arping("192.168.0.0/24")
      i was facing same problem but this way it work

    • @Bruh-sp2bj
      @Bruh-sp2bj 3 года назад

      for anyone reading this that faces the same problem, me from 3 years ago was using a NAT as suggested by Dopamine, I switched to bridged so that my machine could see others on the same network without being behind a NAT, fixed the problem

  • @Bruh-sp2bj
    @Bruh-sp2bj 7 лет назад

    what exactly do i type in interactive scapy session

    • @kschl012
      @kschl012  7 лет назад

      What OS are you using?

  • @faizankhd
    @faizankhd 3 года назад

    how to make HTTP request header and check response if server HTTP or not

  • @diki1985100
    @diki1985100 4 года назад

    nice video
    can I have your note..?

  • @hichamb3286
    @hichamb3286 3 года назад +1

    24:15 By reaching amazon com you're not reaching the port 80 of your computer, but the one of amazon server :)

  • @dtm7743
    @dtm7743 3 года назад

    Can i reach you out somehow ? any social media accounts

  • @sahilgupta221
    @sahilgupta221 5 лет назад

    Can you upload mitm2.py script?

    • @basalticlife1861
      @basalticlife1861 3 года назад

      No Mr. Script Kiddie. But, I wanna know what wallpaper you are using. Is it something like anonymous..green screen, hoodie? We are legion. we do not forget..we do not forgive..expect us? lmao

  • @Bruh-sp2bj
    @Bruh-sp2bj 7 лет назад

    ubuntu

    • @kschl012
      @kschl012  7 лет назад

      Please use 1 comment and chain your comments, it is hard to follow if you open a new chain for every response.
      In Ubuntu Terminal type "ifconfig" and tell me the "inet" address of each of the interfaces that come up

    • @Bruh-sp2bj
      @Bruh-sp2bj 7 лет назад

      enp0s3 - 10.0.2.15

    • @Bruh-sp2bj
      @Bruh-sp2bj 7 лет назад

      i have tried running arping("10.0.2.*") earlier and it still shows an empty list

    • @kschl012
      @kschl012  7 лет назад

      arping("10.*.*.*") - that is 10 dot star dot star dot star. IDK but RUclips is short handing it.
      Warning: This might take a while, as there are a TON of addresses in this network range.
      PS: This was a very basic, and low level question that could have been easily solved with very basic knowledge of networking. If the concepts in this video are confusing to you, then I suggest maybe taking a quick step backwards learning a bit about common network commands/protocols then re watching this video. Best of luck, and keep at it!

    • @kschl012
      @kschl012  7 лет назад

      If this is taking too long, you can try "10.0.2.*". but this will limit your results to anything with a 10.0.2 prefix in their address

  • @hackmasterHQ
    @hackmasterHQ 4 года назад

    Thank you for all the mac addresses I can use for spoofing. LOL. JK.

  • @booblebablo5548
    @booblebablo5548 7 лет назад

    Video quality is unclear