Giter Site home page Giter Site logo

ctr-wlanbeacontool's People

Contributors

yellows8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ctr-wlanbeacontool's Issues

File not generated at the end (Stacktrace included)

I called make clean and make on the ctr-wlanbeacontool-master directory.
This is the result:

--- start stacktrace ----

ctr-wlanbeacontool.c
gcc -MMD -MP -MF /home/pascuaalvi/hx/ctr-wlanbeacontool-master/build_nix/ctr-wlanbeacontool.d -Wall -O2 -I/home/pascuaalvi/hx/ctr-wlanbeacontool-master/include -I/home/pascuaalvi/hx/ctr-wlanbeacontool-master/build_nix -c /home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c -o ctr-wlanbeacontool.o
In file included from /usr/include/pcap/pcap.h:45:0,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /usr/include/pcap/pcap.h:45,
from /home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:4:
/usr/include/pcap/pcap.h:45:23: error: #include nested too deeply
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:353:129: warning: ‘struct pcap_pkthdr’ declared inside parameter list
int generate_beacon(unsigned char inframebuf, unsigned char *framebuf, unsigned int framestart, unsigned int framesize, struct pcap_pkthdr *pkthdr, unsigned int has_fcs)
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:353:129: warning: its scope is only this definition or declaration, which is probably not what you want
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c: In function ‘generate_beacon’:
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:574:8: error: dereferencing pointer to incomplete type ‘struct pcap_pkthdr’
pkthdr->caplen = framesize;
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c: In function ‘main’:
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:586:2: error: unknown type name ‘pcap_dumper_t’
pcap_dumper_t *pcap_dumper;
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:587:2: error: unknown type name ‘pcap_t’
pcap_t *pcap;
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:589:21: error: storage size of ‘pkthdr’ isn’t known
struct pcap_pkthdr pkthdr;
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:596:14: error: ‘PCAP_ERRBUF_SIZE’ undeclared (first use in this function)
char errbuf[PCAP_ERRBUF_SIZE];
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:596:14: note: each undeclared identifier is reported only once for each function it appears in
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:691:9: warning: implicit declaration of function ‘pcap_open_offline’ [-Wimplicit-function-declaration]
pcap = pcap_open_offline(inpath, errbuf);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:694:3: warning: implicit declaration of function ‘pcap_perror’ [-Wimplicit-function-declaration]
pcap_perror(pcap, "pcap_open_offline() failed: ");
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:699:13: warning: implicit declaration of function ‘pcap_datalink’ [-Wimplicit-function-declaration]
linktype = pcap_datalink(pcap);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:700:12: warning: implicit declaration of function ‘pcap_snapshot’ [-Wimplicit-function-declaration]
snaplen = pcap_snapshot(pcap);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:704:9: warning: implicit declaration of function ‘pcap_next_ex’ [-Wimplicit-function-declaration]
ret = pcap_next_ex(pcap, &pkt_header, &pkt_data);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:710:4: warning: implicit declaration of function ‘pcap_close’ [-Wimplicit-function-declaration]
pcap_close(pcap);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:715:25: error: dereferencing pointer to incomplete type ‘struct pcap_pkthdr’
framesize = pkt_header->caplen;
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:718:16: error: ‘DLT_IEEE802_11_RADIO’ undeclared (first use in this function)
if(linktype==DLT_IEEE802_11_RADIO)framestart+= *((unsigned short
)&pkt_data[2]);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:745:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct pcap_pkthdr’
memcpy(&pkthdr, pkt_header, sizeof(struct pcap_pkthdr));
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:805:9: warning: implicit declaration of function ‘pcap_open_dead’ [-Wimplicit-function-declaration]
pcap = pcap_open_dead(linktype, snaplen);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:805:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
pcap = pcap_open_dead(linktype, snaplen);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:806:16: warning: implicit declaration of function ‘pcap_dump_open’ [-Wimplicit-function-declaration]
pcap_dumper = pcap_dump_open(pcap, outpath);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:806:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
pcap_dumper = pcap_dump_open(pcap, outpath);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:815:2: warning: implicit declaration of function ‘pcap_dump’ [-Wimplicit-function-declaration]
pcap_dump((u_char_)pcap_dumper, &pkthdr, outframebuf);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:817:2: warning: implicit declaration of function ‘pcap_dump_close’ [-Wimplicit-function-declaration]
pcap_dump_close(pcap_dumper);
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:596:7: warning: unused variable ‘errbuf’ [-Wunused-variable]
char errbuf[PCAP_ERRBUF_SIZE];
^
/home/pascuaalvi/hx/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:589:21: warning: unused variable ‘pkthdr’ [-Wunused-variable]
struct pcap_pkthdr pkthdr;
^
make[1]: *_* [/home/pascuaalvi/hx/ctr-wlanbeacontool-master/Makefile:31: ctr-wlanbeacontool.o] Error 1
make: *** [Makefile:129: build_nix] Error 2

--- end stacktrace ----

The file is not being generated at the end of this, might you know why?

  • I've installed both pcap and openssl
  • This was done in Cygwin.

Help me!

I have a Windows 10. Don't work for me! Help me. Send me to GIF or Video

undefined reference to "__getreent"

I am trying to compile this using make and I am in Ubuntu.

My stack:

cerrapture

Response needed as soon as possible but I know you are probably busy

Beacon crypto key

Hello,
I've been trying to generate the beacon crypto key for some packets I captured for a while, but the method described in http://3dbrew.org/wiki/NWM_Services seems to be incorrect/incomplete.

Is there an example of how to do that properly somewhere?
At least some clarifications would be nice. The section "CTR used for beacon tags crypto" doesn't explicitly mention whether the structure should be sent through MD5 or not (so I've been bruteforcing both methods in hope that one of them works).

Also the wiki mentions "All data here is all-zero except for the MAC address, when the u8 at offset 0x8 in the network-struct is 0.", however the offset 0x8 is not visible when observing captured packets, because the OUI Type 21 contains the network structure only starting from offset 0xC (and therefore everything before 0xC is 0x00).

I'm sorry if this is incorrect place to post such questions, however I'm running out of options.

How do I use this?

I want to hack smash (Obviously), but I don't know how to and it's very confusing.

Compile errors with make

Hi i've been trying to compile the program and got an error with openssl. Already tried to reboot, remove, reinstall using vm so on and so forth.

ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:5:10: fatal error:
'openssl/md5.h' file not found

include "<"openssl/md5.h">"

. ^
1 error generated.
make[1]: *** [ctr-wlanbeacontool.o] Error 1
make: *** [build_nix] Error 2

I have os x El Capitan and vm is Ubuntu 14

if you need more info please let me know

thanks in advance

Cygwin Installation/build woes

steven_help
I am trying to execute the make command via a cygwin installation on Windows 10, but the compiler can't seem to locate the lpcap file. I have installed wincap as directed by other cygwin users, but I am still having this issue. I have included a snip of the attempted compilation above, and I would appreciate any feedback that you all can offer.

Cygwin not compatible?

screenshot 6
I'd hate to make a new issue but i just cant figure out whats wrong with this, it works with stickerhax so im not sure if its Cygwin or not.

A bit of an Issue I guess?

When I tried to make the file... This happened
ctr-wlanbeacontool.c
gcc -MMD -MP -MF /home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/build_nix/ctr-wlanbeacontool.d -Wall -O2 -I/home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/include -I/home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/build_nix -c /home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c -o ctr-wlanbeacontool.o
/home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/source/ctr-wlanbeacontool.c:4:23: fatal error: pcap/pcap.h: No such file or directory
compilation terminated.
/home/ubuntu/Desktop/Hej/ctr-wlanbeacontool-master/Makefile:30: recipe for target 'ctr-wlanbeacontool.o' failed
make[1]: *** [ctr-wlanbeacontool.o] Error 1
Makefile:128: recipe for target 'build_nix' failed
make: *** [build_nix] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.