How do I install asleap tool in Ubuntu?

11,531

I compiled this software successfully on Ubuntu 18.04 LTS with

sudo apt-get install git build-essential libssl-dev libpcap-dev

cd ~/Downloads
https://github.com/joswr1ght/asleap
cd asleep
make

For your information: its Makefile does not contain install procedure.

So after compilation you can use executables directly by ./asleap and ./genkeys.

Share:
11,531

Related videos on Youtube

Prince
Author by

Prince

Updated on September 18, 2022

Comments

  • Prince
    Prince almost 2 years

    This is the link for the tool - https://github.com/joswr1ght/asleap

    I cloned it:

    $ git clone https://github.com/joswr1ght/asleap
    Cloning into 'asleap'...
    remote: Counting objects: 36, done.
    remote: Total 36 (delta 0), reused 0 (delta 0), pack-reused 36
    Unpacking objects: 100% (36/36), done.*
    

    Then used:

    $ cd asleap
    $ ls
    asleap.c    COPYING      ieee8021x.h      md4.c       sha1.c   version.h
    asleap.h    data         ietfproto.h      md4.h       sha1.h
    byteswap.h  genkeys.c    joshlea.dump     radiotap.h  THANKS
    common.c    genkeys.val  Makefile         README      utils.c
    common.h    ieee80211.h  makefile.cygwin  scripts     utils.h
    
    $ make
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g   -c -o sha1.o sha1.c
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g   -c -o common.o common.c
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g   -c -o utils.o utils.c
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g asleap.c -o asleap common.o utils.o sha1.o -lpcap -lcrypt -lcrypto
    asleap.c: In function ‘main’:
    asleap.c:1398:6: warning: variable ‘findleaptimeout’ set but not used [-Wunused-but-set-variable]
      int findleaptimeout = 5;
          ^~~~~~~~~~~~~~~
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g md4.c genkeys.c -o genkeys common.o utils.o -lpcap -lcrypt -lcrypto
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g   -c -o asleap.o asleap.c
    asleap.c: In function ‘main’:
    asleap.c:1398:6: warning: variable ‘findleaptimeout’ set but not used [-Wunused-but-set-variable]
      int findleaptimeout = 5;
          ^~~~~~~~~~~~~~~
    cc -pipe -Wall -D_LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I../../.. -D_OPENSSL_MD4 -g3 -ggdb -g   -c -o genkeys.o genkeys.c
    
    $ make install
    make: *** No rule to make target 'install'.  Stop.
    
    • rviertel
      rviertel almost 6 years
      Welcome to askubuntu, it would be helpful if you posted the output that you get when you try these commands.
    • George Udosen
      George Udosen almost 6 years
      Please copy and paste the error messages you see on running that command!
    • N0rbert
      N0rbert almost 6 years
      What is your Ubuntu version? What exact error messages you got?
    • muru
      muru almost 6 years
      Please use code formatting for commands and command output: askubuntu.com/editing-help#code
    • Prince
      Prince almost 6 years
      @rviertel I added outputs in the post.
    • Prince
      Prince almost 6 years
      @GeorgeUdosen Check the post again, added outputs.
    • Prince
      Prince almost 6 years
      @N0rbert My Ubuntu version is 18.04.1 LTS. Check the post again I updated it.
  • Prince
    Prince almost 6 years
    How do I call it from anywhere like other tools? Thank you @n0rbert
  • N0rbert
    N0rbert almost 6 years
    You can add their directory path to $PATH variable.