- Update the packages
pkg up- Install curl
pkg install curl| Installing Arch: | |
| sudo vim /etc/pacman.conf | |
| Update packages list: sudo pacman -Syy | |
| run sudo pacman -Syu before installing any software (to update the repositories first) | |
| * Timing issue: | |
| - Change hardware clock to use UTC time: | |
| sudo timedatectl set-local-rtc 0 |
| pacman | |
| ====== | |
| view logs: /var/log/pacman.log | |
| update system | |
| # pacman -Syu | |
| list installed packages | |
| # pacman -Q |
| #!/bin/bash | |
| userAgentList=( | |
| "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4" | |
| "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3" | |
| "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" | |
| "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16" | |
| "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;" | |
| "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)" | |
| "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20061201 Firefox/2.0.0.17 (Ubuntu-feisty)" |
| /* | |
| * (un)comment correct payload first (x86 or x64)! | |
| * | |
| * $ gcc cowroot.c -o cowroot -pthread | |
| * $ ./cowroot | |
| * DirtyCow root privilege escalation | |
| * Backing up /usr/bin/passwd.. to /tmp/bak | |
| * Size of binary: 57048 | |
| * Racing, this may take a while.. | |
| * /usr/bin/passwd overwritten |
pkg uppkg install curl| deb http://http.kali.org/kali kali-rolling main non-free contrib | |
| deb-src http://http.kali.org/kali kali-rolling main non-free contrib | |
| deb http://http.kali.org/kali kali-rolling main non-free contrib | |
| # This system was installed using small removable media | |
| # (e.g. netinst, live or single CD). The matching "deb cdrom" | |
| # entries were disabled at the end of the installation process. | |
| # For information about how to configure apt package sources, | |
| # see the sources.list(5) manual. |
| #!/data/data/com.termux/files/usr/bin/sh | |
| # sudo for Termux | |
| # For security reasons some environent variables are reset by su | |
| # So need to set LD_LIBRARY_PATH again | |
| # root's HOME is set to termux's home/.suroot. You can add bashrc there | |
| ROOT_HOME=$HOME/.suroot |