Results 1 to 5 of 5

Thread: airdrop-ng and pylorcon

Threaded View

  1. #1
    My life is this forum Snayler's Avatar
    Join Date
    Jan 2010
    Posts
    1,418

    Default airdrop-ng and pylorcon FIX

    airdrop-ng is unable to function because pylorcon is missing.
    Code:
    root@bt:/pentest/wireless/aircrack-ng/scripts/airdrop-ng# ./airdrop-ng -i wlan0 -t /root/testap.csv -r /root/rules
    
    #################################################
    #             Welcome to AirDrop-ng             #
    #################################################
    
    
    Pylorcon error, do you have it installed?
    
    Airdrop-ng will now exit
    Sent 0 Packets
    
    Exiting Program, Please take your card wlan0 out of monitor mode
    Trying to install it results in a series of errors, as follows:
    Code:
    Would you like to install pylorcon? (y/n): y
    tar: Record size = 8 blocks
    pylorcon/
    pylorcon/tx.py
    pylorcon/setup.py
    pylorcon/README
    pylorcon/pylorcon.c
    pylorcon/LICENSE
    running install
    running build
    running build_ext
    building 'pylorcon' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c pylorcon.c -o build/temp.linux-i686-2.6/pylorcon.o
    pylorcon.c:8:20: error: Python.h: No such file or directory
    pylorcon.c:9:26: error: structmember.h: No such file or directory
    pylorcon.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:118: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
    pylorcon.c: In function ‘Lorcon_dealloc’:
    pylorcon.c:128: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:129: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:131: error: ‘Lorcon’ has no member named ‘ob_type’
    pylorcon.c:131: error: ‘PyObject’ undeclared (first use in this function)
    pylorcon.c:131: error: (Each undeclared identifier is reported only once
    pylorcon.c:131: error: for each function it appears in.)
    pylorcon.c:131: error: expected expression before ‘)’ token
    pylorcon.c: At top level:
    pylorcon.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:151: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    pylorcon.c:151: error: expected declaration specifiers or ‘...’ before ‘PyObject’
    pylorcon.c: In function ‘Lorcon_init’:
    pylorcon.c:152: error: ‘PyObject’ undeclared (first use in this function)
    pylorcon.c:152: error: ‘iface’ undeclared (first use in this function)
    pylorcon.c:152: error: ‘driver’ undeclared (first use in this function)
    pylorcon.c:152: warning: left-hand operand of comma expression has no effect
    pylorcon.c:155: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’
    pylorcon.c:155: error: ‘args’ undeclared (first use in this function)
    pylorcon.c:155: error: ‘kwds’ undeclared (first use in this function)
    pylorcon.c:161: warning: implicit declaration of function ‘Py_INCREF’
    pylorcon.c:162: error: ‘Lorcon’ has no member named ‘iface’
    pylorcon.c:164: error: ‘Lorcon’ has no member named ‘driver’
    pylorcon.c:166: error: ‘Lorcon’ has no member named ‘drivertype’
    pylorcon.c:166: warning: implicit declaration of function ‘PyString_AsString’
    pylorcon.c:166: error: ‘Lorcon’ has no member named ‘driver’
    pylorcon.c:168: error: ‘Lorcon’ has no member named ‘drivertype’
    pylorcon.c:169: warning: implicit declaration of function ‘PyErr_SetString’
    pylorcon.c:169: error: ‘LorconError’ undeclared (first use in this function)
    pylorcon.c:173: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:173: error: ‘Lorcon’ has no member named ‘iface’
    pylorcon.c:174: error: ‘Lorcon’ has no member named ‘drivertype’
    pylorcon.c:175: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:179: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:180: error: ‘Lorcon’ has no member named ‘in_tx’
    pylorcon.c:183: error: ‘Lorcon’ has no member named ‘in_packet’
    pylorcon.c: At top level:
    pylorcon.c:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:201: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:269: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:297: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:310: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:372: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:422: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:496: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:502: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    pylorcon.c:523: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Lorcon_members’
    pylorcon.c:527: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Lorcon_methods’
    pylorcon.c:562: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘LorconType’
    pylorcon.c:604: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pylorcon_methods’
    pylorcon.c: In function ‘initpylorcon’:
    pylorcon.c:617: error: ‘PyObject’ undeclared (first use in this function)
    pylorcon.c:617: error: ‘m’ undeclared (first use in this function)
    pylorcon.c:619: warning: implicit declaration of function ‘PyType_Ready’
    pylorcon.c:619: error: ‘LorconType’ undeclared (first use in this function)
    pylorcon.c:622: warning: implicit declaration of function ‘Py_InitModule3’
    pylorcon.c:622: error: ‘pylorcon_methods’ undeclared (first use in this function)
    pylorcon.c:628: error: ‘LorconError’ undeclared (first use in this function)
    pylorcon.c:628: warning: implicit declaration of function ‘PyErr_NewException’
    pylorcon.c:630: warning: implicit declaration of function ‘PyModule_AddObject’
    pylorcon.c:633: error: expected expression before ‘)’ token
    error: command 'gcc' failed with exit status 1
    ________________________________

    EDIT: Found the solution:
    Code:
    apt-get install python-dev
    Last edited by Snayler; 11-07-2011 at 04:50 PM. Reason: Solution Found

Similar Threads

  1. Problem with Airdrop
    By PJK33NAN in forum Beginners Forum
    Replies: 2
    Last Post: 09-05-2010, 11:00 PM
  2. Airdrop-ng possible problem help.
    By pilotguy in forum Beginners Forum
    Replies: 3
    Last Post: 05-29-2010, 07:37 PM
  3. Instalar o Airdrop-ng
    By firebits in forum Tutoriais e Howtos
    Replies: 0
    Last Post: 04-16-2010, 12:19 PM
  4. Airdrop-ng When Released
    By Mr-Protocol in forum Tool Requests
    Replies: 10
    Last Post: 02-18-2010, 02:49 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
  •