fmigpaulo
March 12th, 2010, 06:57 PM
Hi,
i'm a computer science student with some programming background (c, c++ and java).
Here's were problems may start: I've installed LORCON2 (a library for injecting 802.11 packets)
./configure --prefix=/usr && make && sudo make install
edited /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
include /usr/local/lib
and updated it: sudo ldconfig
After that, i've created an example.c file, with code presented as example in http://802.11ninja.net/docs/lorcon.3.html
When i try to compile:
sample.c:4:21: error: tx80211.h: No such file or directory
sample.c:5:28: error: tx80211_packet.h: No such file or directory
sample.c: In function ‘usage’:
sample.c:19: warning: assignment makes pointer from integer without a cast
sample.c:25: error: dereferencing pointer to incomplete type
sample.c:26: error: dereferencing pointer to incomplete type
sample.c: In function ‘main’:
sample.c:41: error: storage size of ‘in_tx’ isn’t known
sample.c:42: error: storage size of ‘in_packet’ isn’t known
sample.c:54: error: ‘INJ_NODRIVER’ undeclared (first use in this function)
sample.c:54: error: (Each undeclared identifier is reported only once
sample.c:54: error: for each function it appears in.)
sample.c:69: error: ‘TX80211_CAP_CTRL’ undeclared (first use in this function)
sample.c:76: error: ‘TX80211_FUNCMODE_INJMON’ undeclared (first use in this function)
sample.c:78: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
sample.c:85: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
sample.c:92: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
sample.c:104: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
I've looked for the location of tx80211.h in my computer (to do someting like $ gcc sample.c -o sample -I /finded_dir -lorcon) without sucess locating it.
After download tx80211.h, tx80211.c and tx80211_packet.h from 802.11ninja.net/lorcon/browser/trunk/ the "INJ_NODRIVER undeclared" keep me still.
I'm a noob! Can someone please help?
i'm a computer science student with some programming background (c, c++ and java).
Here's were problems may start: I've installed LORCON2 (a library for injecting 802.11 packets)
./configure --prefix=/usr && make && sudo make install
edited /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
include /usr/local/lib
and updated it: sudo ldconfig
After that, i've created an example.c file, with code presented as example in http://802.11ninja.net/docs/lorcon.3.html
When i try to compile:
sample.c:4:21: error: tx80211.h: No such file or directory
sample.c:5:28: error: tx80211_packet.h: No such file or directory
sample.c: In function ‘usage’:
sample.c:19: warning: assignment makes pointer from integer without a cast
sample.c:25: error: dereferencing pointer to incomplete type
sample.c:26: error: dereferencing pointer to incomplete type
sample.c: In function ‘main’:
sample.c:41: error: storage size of ‘in_tx’ isn’t known
sample.c:42: error: storage size of ‘in_packet’ isn’t known
sample.c:54: error: ‘INJ_NODRIVER’ undeclared (first use in this function)
sample.c:54: error: (Each undeclared identifier is reported only once
sample.c:54: error: for each function it appears in.)
sample.c:69: error: ‘TX80211_CAP_CTRL’ undeclared (first use in this function)
sample.c:76: error: ‘TX80211_FUNCMODE_INJMON’ undeclared (first use in this function)
sample.c:78: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
sample.c:85: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
sample.c:92: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
sample.c:104: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
I've looked for the location of tx80211.h in my computer (to do someting like $ gcc sample.c -o sample -I /finded_dir -lorcon) without sucess locating it.
After download tx80211.h, tx80211.c and tx80211_packet.h from 802.11ninja.net/lorcon/browser/trunk/ the "INJ_NODRIVER undeclared" keep me still.
I'm a noob! Can someone please help?