Results 1 to 2 of 2

Thread: Bash Script for Scapy

  1. #1
    Just burned his ISO
    Join Date
    Aug 2011
    Posts
    1

    Unhappy Bash Script for Scapy

    i'm try to make bash script for scapy.Below is my script
    Code:
    #!/bin/sh
    scapy
    a=IP(dst="192.168.0.111")/TCP(dport=(1,1024),flags="S")
    Output:
    Code:
    Welcome to Scapy(2.2.0-dev)
    >>>
    it doesn't execute second line script.Please help me

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    40

    Default Re: Bash Script for Scapy

    Scapy is python,

    so you should run it as a python script for example:

    #! /usr/bin/env python
    from scapy.all import *

    def arp_monitor_callback(pkt):
    if ARP in pkt and pkt[ARP].op in (1,2): #who-has or is-at
    return pkt.sprintf("%ARP.hwsrc% %ARP.psrc%")

    sniff(prn=arp_monitor_callback, filter="arp", store=0)


    if you need to run it inside bash then call the python script in side bash.


    Quote Originally Posted by clapika View Post
    i'm try to make bash script for scapy.Below is my script
    Code:
    #!/bin/sh
    scapy
    a=IP(dst="192.168.0.111")/TCP(dport=(1,1024),flags="S")
    Output:
    Code:
    Welcome to Scapy(2.2.0-dev)
    >>>
    it doesn't execute second line script.Please help me

Similar Threads

  1. Replies: 6
    Last Post: 10-08-2010, 11:40 PM
  2. Replies: 10
    Last Post: 07-12-2010, 03:04 PM
  3. Soft AP bash script
    By junke1990 in forum OLD Wireless
    Replies: 1
    Last Post: 04-03-2010, 08:30 AM
  4. writing bash script help?
    By imported_dragracekid in forum OLD Newbie Area
    Replies: 10
    Last Post: 02-03-2009, 08:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •