offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.46k stars 889 forks source link

Kismet doesnt log #26

Closed biejay closed 9 years ago

biejay commented 9 years ago

When I Close Kismet and it logs the Data to the km file for Example, i can't find the file. Neither on the sdcard nor the usr/kismet/ location?

binkybear commented 9 years ago

It should be saving to /captures/kismet

biejay commented 9 years ago

At first everything seems fine: screenshot_2014-09-30-14-59-41 still looks good (btw: doesnt matter when i erase or dont erase them) screenshot_2014-09-30-15-00-27 So it looks when i open it in explorer: unbenannt

biejay commented 9 years ago

Ah my fault. Found it finally in the Distribution and were able to move it to the sdcard manually. Unfortunately the funtion to move it to the sdcard doesnt work.

binkybear commented 9 years ago

Just tested commit and issue appears to be fixed, writing to /sdcard now.

biejay commented 9 years ago

Okay nice. How do i update? Apt-get Update?

binkybear commented 9 years ago

Well it's not quite that easy...

The permissions were not set for /sdcard/kali-nh correctly previously. So you could do it manually. Reboot into recovery (TWRP) From adb type:

chmod -R 0777 /sdcard/kali-nh

If you want to update kalimenu you do that from inside chroot:

wget https://raw.githubusercontent.com/offensive-security/kali-nethunter/master/menu/kalimenu -O /usr/bin/kalimenu
chmod +x /usr/bin/kalimenu

Or you can wait for next update. =)

nuuser commented 9 years ago

I just posted a similar problem in the pwnie express forum, basically describing the whole logging issue. I was so far able to test the nethunter image for about 5 days now and I do like a lot of the new features the pwnie express pwn pad is lacking, for example being able to use other wifi adapters. I am also excited about the bad usb and evil keyboard attcks (kinda remind me of the hak5 rubber ducky...great product), but the logging issue is major, especially for network traffic analysis.

I am eager to try out any new patches, fixes, please keep this thread going.

binkybear commented 9 years ago

@nuuser - The next update will include the fix but you can try to do it manually with the steps I provided. It would require you to use TWRP and know how to use adb.

nuuser commented 9 years ago

Cool, it worked! Took me some time because I was busy, but I just followed those steps and successfully copied my log files to the sdcard folder. Thank you.

rummonkey commented 9 years ago

I was having the same issues as well and followed the workaround and after the updates the menu option copied over the files and made the directories. I am now unable to see the files on my PC for example in the directory when connected over USB but via SSH into the Nexus 7 they are there.

Looking back when the menu script executed the copy I see the rsync error: failed to set times on "/sdcard/kali-nh/captures/." Operation not permitted (1)

Is this because rsync was trying to create the dir? Any ideas on fixing this?

EDIT: Looking more at this.. The reported error was because the captures folder was already there. I have tried deleting the captures folder from within kali-nh and re-ran the script. It worked - no errors except now in addition to it creating the captures folder and sub-folders its creating another captures folder with duplicate data and none of it is visible in windows explorer via USB. I have also ran the delete captures menu option and that threw permission errors. Also re-running the export option still produces the same duplicate folder structure.

Thanks guys in advance for the help.

binkybear commented 9 years ago

I think I found the issue. Should be:

rsync -avOP /captures /sdcard/kali-nh/captures

You can try removing the captures folder on sdcard. Then if you want to update kalimenu:

wget https://raw.githubusercontent.com/offensive-security/kali-nethunter/master/menu/kalimenu -O /usr/bin/kalimenu
chmod +x /usr/bin/kalimenu
rummonkey commented 9 years ago

Just wanted to report in that the fix binkybear provided works great and after I updated kalimenu again no errors now on copies and the logs are also showing in Explorer. Thanks for getting this resolved.

binkybear commented 9 years ago

@rummonkey - Thanks for testing and appreciate the feedback.