Termux hacking guide,Commands and Tips
[+] Tools
NMAP is an open source Network mapper written by Gordon Lyon (also known as Fyodor Vaskovich). As the above suggests, its purpose is to scan for hosts and networks in a particular area through sending specially crafted data packets and analyzing their responses. In the hands of Cyber Security experts, it is considered as an effective tool of Network Audit, performing Security Scans and for conducting other similar Network Security Activities.How install ? , Read this : https://kilobyte1024.blogspot.com/hacking tools
HYDRA is another command line based computer program capable of performing dictionary attacks on exposed protocols and networks.
How install ? ,Read this : https://kilobyte1024.blogspot.com/hacking tools
*Tips : Also download Hacker Keyboard which has CTRL and ESC buttons in it.
You’ll be needing it while working in the app. Better get it from
F-Droid.
[+] Commands
Here are the codes with their descriptions :| $ pip install youtube-dl | For installing Youtube-dl |
| $ Pkg install python | Installs Python |
| $ termux-setup-storage | Gives TERMUX access to your file system |
| $ mkdir ‘dir-name | For creating directory |
| $ cd “dir-name” | For changing directory |
| $ cat “file-name” | For reading any file |
| $ mv /path/file /path where file is moved | For moving files from one path to another. |
| $ cp /path/file /path where to copy file | For copying files from one path to other |
| $ rm filename.file-extension | For removing mentioned file from a certain directory. |
| $ ping “website URL” | Helps verify IP level connectivity |
| $ toilet -f mono12 -F gay “your text” | Presents text in a specified format. |
| $ apt show (app-name) | Gives a short but detailed summary on mentioned name of desired app. |
$ pkg upgrade
&&
pkg install autoconf automake bison bzip2 clang cmake \
coreutils diffutils flex gawk git grep gzip libtool make patch perl \
sed silversearcher-ag tar wget pkg-config
work with FTP :
# strat server on port 1024
$ tcpsvd -vE 0.0.0.0 1024 ftpd /
# Connecting to the FTP server that you created from another device
$ ftp 192.168.1.3 1024
Here is the list of commands that could be run in Turmux for different purposes. These are sometimes called Turmux hacking commands also.
| $ cp -v | used to prints informative massage |
| $ cp -r | used to copy any directory |
| $ mv -u | update-move when source is newer than destination |
| $ mv -v | to move any directory |
| $ Is help | to know how to use Is command |
| $ cp - n | no file overwrite |
| $ ls - n | To show UID and GID directory |
| $ ls - n | To show file action like - modified, date and time, owner of file, permissions Etc. |
| $ cd-- | to show last working directory from where we moved |
| $ ls --version | to check the version of ls command |
| $ cd~ | Move to users home directory from anywhere |
| $ mv [file1 name] [new file2 name] | Move or rename two files at a time |
| $ cd- | to move one directory back from current directory |
| $ mv [file name] | To move any file and folder |
| $ ls | List directory |
| $ ls - a | list all files including hidden files |
| $ pwd | It shows your current directory |
| $ mv - i | interactive prompt before overwrit |
| $ ls -i | Display number of file or directory |
| $ cp | copy any file |
| $ cd / | change to root directory |
| $ cd | change directory |
| $ cd .. | change current directory to parent directory |
| $ curl -O [url] | apt install curl |
| $ rm | remove or delete files |
| $ wget [url] | Install tool, apt install wget |
| $ git clone [url] | to install any tools with git clone, apt install git |
| $ ls - al | to make formatted listing with hidden files |
| $ mv - f | to force move by overwriting destination files without prompt |
| $ rm [filename] | remove any text files |
| $ rmdir [dir name] | remove any directory |
| $ rm -rf | force remove a directory or a folder |
| $ rm -r [name] | delete a directory called name |
| $ apt remove [package name] | uninstall / remove a package |
| $ touch [file name] | create new file |
| $ mkdir [name] | create a directory or folder |
| $ more [file name] | output the contents of file |
| $ head [file name] | output the first 10 line of file |
| $ tail -f [file name] | output the contents of file as it grows |
| $ apt install zip | install zip file tool |
| $ zip name.zip [file] | compress file using this commands |
| $ unzip [zip file] | to unzip file |
| $ ftp | launch ftp client from terminal |
| $ -p | use passive mode |
| $ bye | terminate current ftp session, exit |
| $ ascii | set file transfer to ascii protocols |
| $ bell | bell sound after each command |
| $ status | shows current status about ftp server |
| $ open host | open a connection to remote host |
| $ remotehelp [cmdname] | request help from ftp server |
| $ account [password] | supply a password required by remote |
| $ uname -m | used to find the architecture of your device |
| $ du | display directory space usage |
| $ df | display disk usages |
| $ cal | show display calendar |
| $ w | show display who is currently online |
| $ cat /proc/meminfo | show memory related information |
| $ cat /proc/cpuinfo | show cpu information |
| $ whoami | show your login name |
| $ fingure username | shows information about user |
| $ date | show the current date and time |
| $ uptime | show the system current uptime |
| $ man command | show manual a command |
| $ free | display memory and swap usage |
| $ kill | send signal to process |
| $ kill- l | list all of the signal that are possible to send with kill |
| $ lspci | show PCI devices |
| $ lsusb | show usb devices |
| $ apt search [qurey] $ pkg search [qurey] |
find a package |
| $ locate [file] | find all files with filename |
| $ locate [query] | find all path names contains a pharse |
| $ whereis [command] | find location binary /source/man file for a command |
| $ which [command] | find of an executable |
| $ grep pattern [files] | searching for pattern in files |
| $ grep -r pattern files | searching for certain pattern in files |
| $ command | grep pattern | search for pattern in the output of command |
| $ find / -atime40 | to find all the files, which are accessed 40 days back |
| $ find / -cmin -60 | find change files in last 1 hour |
| $ find / -type d -name mll | find all directories whose name is mll in directory |
| $ find . -type f -perm 0777 -print | find all tghe files, whose permission are 777 |
| $ ifconfig | shows all configuration a network interface like ip, mac |
| $ ifconfig eth0 | used view the network setting on the interface eth0 |
| $ ifconfig wlan0 | view the network setting on wlan0 |
| $ ping [host] | to ping host ip and show results |
| $ arp | check network card & show ip adress |
| $ host | display specific server |
| $ netstat | review network connection |
| $ nslookup | find out DNS related query |
| $ tracerout ipadress | display number of hops & respone time to get to a remote system and website |
| $ whois domain | get whois information of domain |
| $ telnet [ip address [post] | telnet connection |
| $ dig domain | get DNS information of domain |
| $ scp | copies file, over a source |
| $ uname -a | used to display kernal information |
| $ whereis app | shows possible location for an app |
| $ nano [file name] | display and edit text files |
[+] Turn Android Device into a Web Server
First of all I have to say that this experimental is tested and worked only with the Iris web framework, written in Golang and Android version 5.1.How we do that :
# Execute the following commands by order
$ pkg install git
$ pkg install golang
$ export GOPATH=/data/data/com.termux/files/home/go
$ go get -u -v github.com/kataras/iris
$ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world
$ go run main.go
$ pkg install golang
$ export GOPATH=/data/data/com.termux/files/home/go
$ go get -u -v github.com/kataras/iris
$ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world
$ go run main.go

Comments
Post a Comment