Installing NMAP to run via Terminal
Lets start of by making sure your nook is rooted and you have Superuser and su already setup on your device.
If you need to root your device, please visit http://nookdevs.com/NookColor_Rooting for the walk through process.
Following that you will want to install Superuser and su by following the steps found at http://nookdevs.com/NookColor_Installing_su_and_the_Superuser_app
Once all that has been completed, we can gather our resources:
nmap files: http://forum.xda-developers.com/attachment.php?attachmentid=486422&stc=1&d=1294720525
Once you download and extracted the nmap files, choose and install your preferred terminal app. I use Better Terminal Emulator Pro, Thanks to Magicandroidapps.com .
Now we are ready to start installing the files.
Load up ADB and run the following commands. This will be assuming that the files are in the same directory as the adb.exe. Otherwise you will need to include the whole file path to the files.
Code:
$ adb usb
$ adb shell
$ mount -o remount,rw /dev/block/mmcblk0p5 /system
$ exit
$ adb push foo /system/bin/nmap
$ adb shell
$ chmod 755 /system/bin/nmap
$ mkdir /data/bin/
$ exit
$ adb push nmap /data/bin/
$ adb push nmap-4.01-1.spec /data/bin/
$ adb push nmap-mac-prefixes /data/bin/
$ adb push nmap-os-fingerprints /data/bin/
$ adb push nmap-protocols /data/bin/
$ adb push nmap-rpc /data/bin/
$ adb push nmap-service-probes /data/bin/
$ adb push nmap-services /data/bin/
$ adb shell
$ chmod 755 /data/bin/nmap
$ exit
$ adb reboot
Once your device has rebooted, load your terminal and type nmap. You should then be presented with the nmap man page. You should see the following in your terminal window.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
~Exile~
"When All Else Fails, Try Linux"
Thanks! I know it's nerdy, but I think going from ebook reader to port-mapper is pretty B.A.
Hi!
When I try to install, the first command say this:
[email protected]_umts:/ $ mount -o remount,rw /dev/block/mmcblk0p5 /system
mount -o remount,rw /dev/block/mmcblk0p5 /system
mount: Operation not permitted
What I can do?
help me
[email protected]#nmap
/system/bin/nmap[1]: /data/bin/nmap: can't execute ermission denied
How to do it?
Bro help !!!
rainbowshotdroid said:
[email protected]#nmap
/system/bin/nmap[1]: /data/bin/nmap: can't execute ermission denied
How to do it?
Bro help !!!
Click to expand...
Click to collapse
Did you type su first to get it into root mode?
Sent from my BN NookHD+ using XDA Premium HD app
my phone is already rooted. G900H
rainbowshotdroid said:
my phone is already rooted. G900H
Click to expand...
Click to collapse
That does not root it, it puts terminal in root permission mode. Typing su enter will cause terminal to ask for root permission. Once it gets it the cursor changes from a > to a $. Then your commands should work.
Sent from my BN NookHD+ using XDA Premium HD app
please provide tutorial for latest version of nmap
Related
I haven't seen any other threads and if I have over looked anything based on this topic that is helpful please redirect me. I was just wondering what apps that are preinstalled in ROMs are safe to remove e.g Twitter, Flickr, Footprints etc. I do not need help removing them I already have I am just curious as to what else can be removed safely with out creating an problems/FC.
For anyone interested in removing these apps here is how to do so: (I absolutely do not take any credit for figuring out how to removes these I found it on google and I cannot remember where)
Code:
Type "adb remount"
to remove Peep: "adb shell rm /system/app/*Twit*" then press enter
to remove Stocks: "adb shell rm /system/app/*Stock*" then press enter
to remove Flickr: "adb shell rm /system/app/*Flickr* then enter
to remove Footprints: "adb shell rm /system/app/*Footprints*" then press enter
Additional Apps that are possible to remove thanks to shelnes for the info
to remove Teeter (the HTC game like labyrinth): "adb shell rm /system/app/*Teeter*"
to remove Mail: "adb shell rm /system/app/*Mail*"
to remove HTC Sync: "adb shell rm /system/app/*Sync*" *NOTE* THIS MAY CAUSE YOUR WEATHER TO NO LONGER WORK (the weather info clock) WHEN I REMOVED ALL OF THESE FOR SOME REASON OR ANOTHER MY WEATHER CEASED TO WORK
to remove QuickOffice: "adb shell rm /system/app/*Quickoffice*"
to remove Jbed Java: "adb shell rm /system/app/*Jbed*"
PLEASE NOTE this directory did not work for me if it does not work for you try
"adb shell rm /system/sd/app/*Jbed*"
*NOTE*: Please note that you must run command prompt to do this, either click start, run and type 'cmd' or anyone with Vista or higher type 'cmd' in search, also AndroidSDK must be installed search the forums youll find a guide then in cmd type 'cd\' enter, and 'cd yourdrive:\AndroidSDK(or whatever you named the folder)\tools\' e.g cd c:\AndroidSDK\tools\ after doing this you can enter the commands in the code box
where do u type these? i have ra 1.6.2 and no idea where to put these in
edit: no worries i found it. For any1 else wondering its the cmd prompt on your pc after remounting your phone (should have done this in the early stages of making your goldcard!)
so are there no other apps that are safe to remove?
You also can remove Teeter, Mail, HTC Sync, Mail, Jbed Java and QuickOffice without it causing any problems.
thank you =D
No problem
-------------------------------------
Sent via the XDA Tapatalk App
How to remove Stocks, Nascar and other useless apps...
Hmm cant get it to work?
Just asks me if I want to remove what I just entered and cant enter y for yes?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sorted forgot to adb remount: also get rid of unwanted ring tones eg:
adb shell rm /system/media/audio/ringtones/*Blippy*
Motorola Dashboard app extracted from Motorola Defy XT535 Gingerbread SBF. The Motorola Defy XT535 has the same resolution as the Motorola Defy/Defy+ and it should work for all Gingerbread ROMs and above. The zip file will flash the Dashboard app to the /system partition as it doesn't work if you flash it to the /data partition. The app WILL FC when you install it as a normal APK.
How to install the Motorola Dashboard app using the zip file:
1. Root your device and install Android Bootmenu if you haven't already done so. Custom ROMs already have bootmenu installed.
2. Download the zip file and put it in your SD Card.
3. Boot your device into CWM or TWRP.
4. Install the zip file.
5. Mount /system and /data partitions.
6. Install Compass and Music Now Services for Dashboard to work properly as I didn't include in the zip file (oops).
Type the following commands in cmd:
Code:
adb shell
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
# exit
Code:
adb push Compass_alldpi.apk /system/app/
Code:
adb shell chmod 644 /system/app/Compass_alldpi.apk
Code:
adb push MusicNowGlobal_tinboostplus_hdpi.apk /system/app/
Code:
adb shell chmod 644 /system/app/MusicNowGlobal_tinboostplus_hdpi.apk
7. Reboot your device and you should see the Dashboard and Compass in the app drawer.
How to install the Motorola Dashboard app manually:
1. Root your device and install Android Bootmenu if you haven't already done so. Custom ROMs already have bootmenu installed.
2. Download the APK and put it in the same path as adb.
3. Boot your device into CWM or TWRP.
4. Now mount /system and /data
5. Install Compass and Music Now Services for Dashboard to work properly.
Type the following commands in cmd:
Code:
adb shell
# mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
# exit
Code:
adb push DashBoard_tinboostplus_hdpi.apk /system/app/
Code:
adb shell chmod 644 /system/app/DashBoard_tinboostplus_hdpi.apk
Code:
adb push Compass_alldpi.apk /system/app/
Code:
adb shell chmod 644 /system/app/Compass_alldpi.apk
Code:
adb push MusicNowGlobal_tinboostplus_hdpi.apk /system/app/
Code:
adb shell chmod 644 /system/app/MusicNowGlobal_tinboostplus_hdpi.apk
6. Reboot your device and you should see the Dashboard and Compass in the app drawer.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hit the thanks button if I helped you
What exactly is Dashboard? Some kind of car mode?
TJKV said:
What exactly is Dashboard? Some kind of car mode?
Click to expand...
Click to collapse
It's a fitness app by Motorola that was made for the Motorola Defy Mini and Defy XT.
thank you
Introduction
Try at own risk
I am a Linux user. Commands are Debian or Ubuntu so you may need to check your package manager for
Linux software for adb if different distro.
If you do not have sudo enabled, then use su - please
On tablet, I use "reboot" by Petrus, as recommended by pogs24ever
I have also installed app= adbd insecure........YMMV
Know that when TWRP is used on removeable sdcard = /sdcard2, you will have a folder
called TWRP so I prefer to rename my image as twrp.img
Credits
Vampirefo for his wonderful help with adb and root id test
pogs24ever for his XDA post for TWRP
AbduL_PT for TWRP for Rockchip
Method
SPOILERS= Click to show content ..... hides images only
Ensure your device is rooted.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If your method to root is failing try my method here.
http://forum.xda-developers.com/hua...t-huawei-mediapad-7-lite-alternative-t2996675
On tablet go to system settings and enable USB debugging.
Don't worry about setting media transfer, camera or Hisuite
Download and unpack the TWRP* zip to PC and copy TWRP.img to your home folder.
See Original post for latest download
http://forum.xda-developers.com/showthread.php?t=2693100
Latest download is found at
"Dowload the zip file to this"
Install latest adb to Linux PC
Code:
sudo su
apt-get update
apt-get install android-tools-adb
Do NOT close terminal please
Create udev rule if you don't yet have Huawei mentioned in your rules
Code:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="666", GROUP="plugdev" ' > /etc/udev/rules.d/55-huawei.rules
Refresh udev for distros running "service" such as distros like Ubuntu with next command or
bottom line for distros not running service like Debian.
Code:
service udev restart
udevadm control --reload-rules
Now open terminal as local user please.
I prefer to kill the server and restart it with
Code:
adb kill-server
adb devices
If you do not get a device showing a serial number, you can NOT continue.
Recheck you have enabled USB debugging, kill the server and retry adb devices command.
If you are not sure what device your recovery is on, recheck it please with
Code:
adb shell cat /proc/mtd | grep recovery
Now we need to translate that into a device which is /dev/mtd/mtd3
Now we can flash with
Code:
adb push TWRP.img /sdcard2/twrp.img
# above line copies TWRP to removeable sdcard, change sdcard2 if you
don't use one please.
adb shell su -c "dd if=/sdcard2/twrp.img of=/dev/mtd/mtd3"
adb kill-server
Second last command may fail if you don't yet have a rooted device
also if size of bytes of TWRP image is wrong, recheck it please.
6717440 bytes = 6560 Kb = 6.41 Mb which is far less than max size of recovery image.
Before you test, ensure you have a backup of current recovery on removeable sdcard please.
Now use app to reboot into recovery to test.
Nice.. Hope you can find time to port some Cm rom for this.. I stop digging for this device for sometime now.. We have manage to boot on cm9 but it goes bootloop due to kernel compatibility ..
pogs24ever
I have not attempted to port anything yet. Feel free to pm or post here any links you would like me to look at please.
nor have I attempted to cross compile a kernel for this device but I can see Huawei appear to have source here
http://consumer.huawei.com/en/support/downloads/detail/index.htm?id=18334
cheers
just to make it clear in case others drop by via google
this is the mediapad with model showing as S7-931W
and
ro.product.device=hws7930w
2) you can use huawei and 7930 to see one entrant here
https://www.otaupdatecenter.pro/device-lookup
good luck
All I want to achieve is to pull subfolders ( DCIM etc.pp ) of Android's /data/media folder what successfully got mounted as RW
To access /data partition you need root permission which is adb root
But most devices would refuse to run this command, in which case you need to install adb insecure mode. You can get that from here.
After installing the app switch to insecure mode. Then pull command should work.
Alternatively you can use adb shell to work around it:
Code:
adb shell
su
mkdir /sdcard/media
cp -R /data/media/* /sdcard/media
exit
exit
adb pull /sdcard/media
Notes:
The "*" in "/data/media/*" stands for all, which copies all files in current directory. If you want specific file just replace it with "filename.extension"
The option "-R" in "cp" command stands for recursive which copies directories, and will copy all files in respective directories as well.
Thanks for trying to help: Unfortunately your solutions don't work at all.
FYI:
I use /data/local/tmp for intermediate storage ( permissions: rwxrwxrwx )
I can successfully copy /data/media/<SUBFOLDER> to /data/local/tmp/<SUBFOLDER> ( permissions rw-rw-rw- )
All copied files have permission rw-rw-rw-
When applying ADB PULL on /data/local/tmp/<SUBFOLDER> I still get error "Access denied" even if having additionally set owner of all
files in /data/local/tmp/<SUBFOLDER> to shell.shell and/or root.shell and/or shell.root and/or root.root
It's working fine with me, but I used /sdcard as the copy folder.
Like I said you can only access /data partition with root. You can try the first method mentioned above.
As mentioned none of your suggestions solved the problem.
1, ADB Insecure obviously doesn't work on Android 8+ devices, hence useless
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Temporarily copying to /sdcard in my case is useless too, because /sdcard is merely a symlink to /data
So you can't even use pull command on /sdcard partition?
I only found this answer, that may be similar https://android.stackexchange.com/a/213172
To my knowledge Windows Subsystem for Android ( WSA ) is not created to run apps from the Amazon store only, but is configured for testing via ADB, will say run Linux commands in an Android shell, too.
WSA ( what at time of this writing is running Android 12 ) has merged Landley's Toybox v0.8.4, a bag of over 200 Linux command line applets - I have not really counted them.
A typical Linux distribution provides 428 command line applets - the SU incorporated. I have uploaded .ZIP ( 263 MB ) what contains them all here to:
428-cmds
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
If you are interested in this project, too, then it's on you to download and extract the .ZIP and push the 428 files onto Android, preferredly to /storage/emulated/0/428-cmds, and make them executable.
Example .BAT-file - assumed .ZIP got extracted into D:\428-cmds folder & ADB is installed on PC
Code:
adb connect 127.0.0.1:58526
adb devices
adb shell "cd /sdcard & mkdir -p -m06755 428-cmds 2>/dev/null"
adb push "D:\428-cmds" "/sdcard/428-cmds/"
adb shell "SM='getenforce';setenforce 0;cd /sdcard/428-cmds;CMDS='$(find .-name "*" -maxdepth 1 -type f 2>&1 | grep -i -v denied)';while read x;do chmod 06755 "$x" & chown root:shell "$x";done; << "$CMDS";chcon "$x" u:object_r:su_exec:s0;setenforce "$SM";"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note:
The 428 commands provided all are ELF32 binaries, so 32-bit:
That doesn't have to stop you from using them on a x86_64 PC because a 64-bit CPU can handle 32-bit commands.
Hmm... Great Work
I am getting an error on the last command.
/system/bin/sh: here document '$CMDS' unclosed
I tried the method in your toybox thread but it doesn't connect to wsa.
I think it is looking on the wrong port from the looks of the script. I am just trying to get root. I updated my rooted build of wsa and it no longer would load. i have tried different ones making sure to remove the one from the microsoft store first. Installing the one from the microsoft store by installing the amazon store gets wsa working again but without root and without my userdata.vhdx that I backed up. Any help would be appreciated. Thanks