Skip to content

Add README / prepare for Git & Github migration #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

p-l-
Copy link
Member

@p-l- p-l- commented Jan 12, 2016

No description provided.

p-l- added a commit that referenced this pull request Jan 12, 2016
Add README / prepare for Git & Github migration
@p-l- p-l- merged commit ae82f91 into secdev:master Jan 12, 2016
@p-l- p-l- deleted the prepare-github branch January 12, 2016 10:39
wataash added a commit to wataash/scapy that referenced this pull request Feb 17, 2020
errno set by pcap_open_live(3) (typically EPERM or ENXIO) was not
checked, eventually causing a segmentation violation at
pcap_get_selectable_fd():

    $ python3 -c 'from scapy.all import *; conf.use_pcap = True; sendp("", iface="nonexist0")'
    fish: “python3 -c 'from scapy.all impo…” terminated by signal SIGSEGV (Address boundary error)

because pcap_get_selectable_fd(3) refered to NULL:

    (gdb) bt
    #0  pcap_get_selectable_fd (p=0x0) at ./pcap.c:1419
    secdev#1  0x00007f963a72781e in ffi_call_unix64 () from /lib/x86_64-linux-gnu/libffi.so.6
    secdev#2  0x00007f963a7271ef in ffi_call () from /lib/x86_64-linux-gnu/libffi.so.6
    secdev#3  0x00007f963b17cf49 in _call_function_pointer (flags=flags@entry=4353, pProc=pProc@entry=0x7f96382d1300 <pcap_get_selectable_fd>, avalues=0x7ffd96028bd0,
        atypes=<optimized out>, restype=<optimized out>, resmem=resmem@entry=0x7ffd96028be0, argcount=1) at ./Modules/_ctypes/callproc.c:827
    secdev#4  0x00007f963b17d965 in _ctypes_callproc (pProc=pProc@entry=0x7f96382d1300 <pcap_get_selectable_fd>, argtuple=argtuple@entry=0x7f963b263608, flags=4353,
        argtypes=argtypes@entry=0x7f9638360d58, restype=restype@entry=0x18d7628, checker=checker@entry=0x0) at ./Modules/_ctypes/callproc.c:1184
    secdev#5  0x00007f963b176401 in PyCFuncPtr_call (self=0x7f963836bcf0, inargs=<optimized out>, kwds=<optimized out>) at ./Modules/_ctypes/_ctypes.c:3969
    secdev#6  0x000000000043730f in ?? ()
    secdev#7  0x00007f96382823b8 in ?? ()
    secdev#8  0x0000000000000000 in ?? ()

    (gdb) l
    1414
    1415	#if !defined(_WIN32) && !defined(MSDOS)
    1416	int
    1417	pcap_get_selectable_fd(pcap_t *p)
    1418	{
    1419		return (p->selectable_fd);
    1420	}
    1421	#endif
    1422
    1423	void

    (gdb) p p
    $1 = (pcap_t *) 0x0
p-l- pushed a commit that referenced this pull request May 24, 2020
gpotter2 pushed a commit that referenced this pull request Dec 28, 2024
* Add support for S1G beacon to the dot11 layer. (#2)

 - Includes unit test parsing and confirming an S1G beacon
 - Includes support for the new Frame Control format for type=3,
   subtype=1 (S1G beacon)
 - Includes changes to support addressing used in S1G beacon.

All dot11 unit tests pass with this change.

* More unit test changes to trigger workflows (#3)

* Add support for S1G beacon to the dot11 layer.
 - Includes unit test parsing and confirming an S1G beacon
 - Includes support for the new Frame Control format for type=3,
   subtype=1 (S1G beacon)
 - Includes changes to support addressing used in S1G beacon.

All dot11 unit tests pass with this change.

* Update S1G beacon parsing based on code review. (#4)

* Fix review comments from @p-l-:
 - Use set for 'type in' checks for extension frame type 3, subtype 1
   (S1G beacon).

* Update to FCfield to split into three parts for type 3, subtype 1 (S1G
beacon frame control field). This allows use of BitField for the 'bw',
and FlagsField for the remaining bits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant