WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver  (Read 35326 times)

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #15 on: June 01, 2020, 11:49:30 PM »
I still didnot make extensions for all of them.
I just want to remake the mydata.tgz from extracted home and opt directories.

aus9

  • Guest
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #16 on: June 02, 2020, 12:03:58 AM »
I have just seen your last reply but first some suggestions on your earlier questions.

In addition to what Juanito just said....you have a few options

1) you could re-compile and make a TCE or few as per the wiki
http://wiki.tinycorelinux.net/doku.php?id=wiki:creating_extensions
but not forced to submit them, as you see fit.
Obviously TC can not accept closed source binaries, if any are as I have not researched your exes.

2) grab all your compiled executables, lib files and the like and bundle them into a private TCE

3) grab all your compiled executables and try running them without making a TCE by copying them into ~/.local/bin

Since the wiki entry makes certain assumptions let me pretend to make a private TCE as an example you might like to follow?
This is not perfect. Not meant to be. Instead of # for comments I used ()

Code: [Select]
$ tce-load -w squashfs-tools
$ tce-load -l squashfs-tools
(if you know you have never downloaded it, try tce-load -wil squashfs-tools)
$ cd /tmp
(choose a tce-name I choose test)
$ mkdir -p test/usr/local/bin
$ cp /home/tc/.local/bin/searchtce test/usr/local/bin
(if not already executable make it so) $ chmod -R 755 test/usr/local/bin
$ mksquashfs test test.tcz
$ mv test.tcz /mnt/sda5/tce/optional
$ tce-load -i test
$ /usr/local/bin/searchtce

If it passes test - does not need any lib files added, needs no running dependencies etc.
Consider adding it to your boot list, for most people thats onboot.lst
« Last Edit: October 28, 2022, 12:10:56 AM by Rich »

aus9

  • Guest
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #17 on: June 02, 2020, 12:16:47 AM »
Quote
I just want to remake the mydata.tgz from extracted home and opt directories.

Lets pretend your current system is working but some files are missing but are in your mydata.tgz backup? As I am not sure what you mean otherwise. So I am assuming you have 2 mydata.tgz
one....at correct dir and another somewhere else that contains the missing files

Literally try this...
open control panel -> click the Backup/Restore button
click on included for backup

Check what is missing.
If you have a persistent home....that is your responsibility to ensure files exist over reboot.
I am sure you understand that by now. If you have a true fully persistent home, I am not sure how you can missing files from it.

but lets pretend you need a file with pathway
/usr/local/lib/libabc.so
and its not showing in above list

so you must use root powers to extract it from your "backup" that contains it
and add that file to /usr/local/lib

Next add that file in the backup GUI
Next pulldown "Dry Run" and choose Backup.
click go
-> that new file must appear in the list.

Please note you can only have one backup file at the root of your tce dir
called mydata.tgz

there are other options.

Personally I like using a terminal file manager that can unpack that file
its called mc.

here is a screenshot if interested.
https://imgur.com/AXWyP0K
« Last Edit: June 02, 2020, 12:20:58 AM by aus9 »

aus9

  • Guest
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #18 on: June 02, 2020, 12:31:28 AM »
EEK, there is another possibility.

I believe you were advised that....if you wanted a fully persistent home dir....you needed to remove that home dir from your backup file.

Maybe you did not understand that request?
In which case....your boot up....will replace whatever is currently in /home with whatever is in the backup for /home.

I still believe, your real files will exist at /mnt/sda5/home.

Is this what you mean?

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #19 on: June 02, 2020, 03:49:38 AM »
@aus9
Thanks a lot for your help.
Just like you said, I ran a dry run. Nothing happened.
Then, in Control Panel, in Backup/Restore, I saw a restore option.
Then, I got an idea. I repacked the home directories into mydata.tar (which I have previously extracted and by which I got this error) and then ran gzip on that mydata.tar ==> mydata.tar.gz. I renamed it into mydata.tgz. And then replaced it with the mydata.tgz(which has no files). Then I ran restore from the Control Panel. EUREKA !!! I got my files.
Now, I am gonna reboot and see if it restores from the backup.
Now, I need no persistent home directories (YAY!!!  ;D ) .
Thanks for all your support. I just installed mc file manager. It is simply super and it is really useful for those who really care about internet data usage (like me, tbh).
I am now trying the extension making process aus9 said. If it is successful, I will make extensions for hashcat and mail it to you.
UPDATE : Yes. It restored successfully.
@aus9 You said that the method is not perfect. Could you please post a perfect one ?
EDIT : Starting from UPDATE.
« Last Edit: June 02, 2020, 04:13:22 AM by Sashank999 »

aus9

  • Guest
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #20 on: June 02, 2020, 05:41:08 AM »
Quote
I ran a dry run
I have never asked you to do this.
Please read it again.

No I will not supply a perfect example because umm, I am not the guru here.
There are many ways of doing things. You have already figured out many things without anyone's help. That is perfect  ;D

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #21 on: June 02, 2020, 06:21:21 AM »
Sorry. You told me to pull down the menu in which there is Dry Run. But I ran dry run. It is my bad.
Then who else knows how to create a tc extension ?
Even wiki.tinycorelinux.net is not working.
I will try googling it.

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #22 on: June 03, 2020, 12:55:44 AM »
Actually, I didn't get any good answers by googling. Please give me a method.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #23 on: June 03, 2020, 01:00:18 AM »
Hi Sashank999
... Then who else knows how to create a tc extension ?
Even wiki.tinycorelinux.net is not working. ...
Here's an alternate site for the Tinycore Wiki:
http://wiki.tinycorelinux.net/doku.php?id=wiki:start
« Last Edit: October 27, 2022, 09:44:51 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #24 on: June 03, 2020, 01:01:58 AM »
You need to make squashfs extensions out of the installed apps:
Code: [Select]
...
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ vi files [edit unneeded files]
$ sudo tar -T files --numeric-owner -zcvf extension.tce
$ mkdir /tmp/pkg
$ cp extension.tce /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xf extension.tce
$ rm extension.tce
$ cd ..
$ sudo mksquashfs pkg/ extension.tcz

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #25 on: June 03, 2020, 02:36:43 AM »
Thanks @Rich for the web site. Now, with a wiki, I can use TCL a bit more.
@Juanito
Not for personal extensions. I wanna make extensions for all x86 TCL users.
I like to compile more tools and upload them to the repo of TCL so that other TCL users may not face the trouble of compiling.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #26 on: June 03, 2020, 11:16:44 AM »
Hi Sashank999
... @Juanito
Not for personal extensions. I wanna make extensions for all x86 TCL users. ...
The instructions that Juanito provided should work for all packages using make, both personal and otherwise.

Besides the Wiki, maybe this writeup will be of some use:
http://forum.tinycorelinux.net/index.php/topic,23844.msg149748.html#msg149748

There is also a build script attached that you can use to see all (I hope) of the steps involved.

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #27 on: June 04, 2020, 12:54:58 AM »
Thank You @Rich . The script looks amazing. It automates all things without human interactions. I will try to create one.
At present, I made .tcz files with mksquashfs for hcxdumptool,hcxtools, aircrack-ng. But I don't know the license things. Once I know about it, I will separate all libs, manpages, executables, create .info, .md5, .dep and mail it.
Any tips about what to do with the licenses for hcxtools, hcxdumptool, aircrack-ng ?

Offline Sashank999

  • Sr. Member
  • ****
  • Posts: 405
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #28 on: June 04, 2020, 01:45:29 AM »
aircrack-ng has GPL v2 and both hcxdumptool and hcxtools have MIT license.
And also, should I follow the flags mentioned in your script for my x86 TCL ?
In your script, x86 flags are in case i686 and I am assuming they are the flags for all x86 TCL PCs.
                CFLAGS=" -flto -march=i486 -mtune=i686 $OPTIMIZE -pipe -fno-plt"
#      CXXFLAGS="g++ -flto -march=i486 -mtune=i686 $OPTIMIZE -pipe -fno-plt -fno-exceptions -fno-rtti"
      LDFLAGS="-Wl,-T/usr/local/lib/ldscripts/elf_i386.xbn"

aus9

  • Guest
Re: Installation of aircrack-ng,hashcat,hcxdumptool,hcxpcaptools,reaver
« Reply #29 on: June 04, 2020, 03:09:13 AM »
Until you get a better reply
Quote
Any tips about what to do with the licenses for hcxtools, hcxdumptool, aircrack-ng ?
I did post a wiki link at reply 16 on how to create a TCE, you must  have missed it.  ;D

You may like to read "Required Files"

those licences, GPL or MIT may not specifically require accompanying with the exe.
but you mention a man page.

If any look like they do need accompany major portions of your software then the gurus use
/usr/local/share/doc/TCE-name/<some-licence> as the preferred dir for it to unpack to.
You can see example of both man page and some docs here
http://tinycorelinux.net/11.x/x86_64/tcz/gutenprint-doc.tcz.list

on 64 bit the man viewer is supplied by man-db.tcz but it looks like it might be supplied by
man.tcz on 32 bit.
try loading it and your TCE-doc and running
Code: [Select]
man <some-name>to see if a man page appears.

If that works, consider making man.tcz a dep of your doc TCE.
otherwise specify it in your comments to doc please.