Code: Select all
curl -s icanhazip.com
Code: Select all
curl -s icanhazip.com
Code: Select all
nmap -sP 192.168.1.0/23
Code: Select all
arp -a
Code: Select all
sudo apt edit-sources
Select an editor. To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny
Choose 1-4 [2]:
Code: Select all
watch sensors
Code: Select all
watch -d sensors
Code: Select all
mkdior
Code: Select all
while true; do while [[ $(ps aux | grep -c [s]tupid.php) -gt 9 ]]; do ps -eo user,pid,cmd,etime | grep [u]ser | grep "php /home/user/stupid.php" | tail -n1 | kill $(cut -d " " -f5) ;sleep 10s ; echo "killed one"; done ;done
Code: Select all
systemctl list-unit-files --type=service | grep enabled
Code: Select all
systemctl stop *unneeded.service*
Code: Select all
systemctl disable *unneeded.service*
Code: Select all
systemctl status *unneeded.service*
Code: Select all
xcalib -invert -alter
Code: Select all
xcalib -i -a
Code: Select all
echo 'main(){printf("hello, world!\n"); return 0}' > hello.c
cc -static hello.c -o hello
mkdir /ns/handcraft && cp hello /ns/handcraft/
ip netns add handcraft
ip netns exec handcraft unshare -fpium --mount-proc env -i container=handcraft PATH=. chroot /ns/handcraft hello
Code: Select all
$ echo '#include "/dev/stdin"' > pgm.c
$ cc pgm.c
int main() {
printf("Compile time code!\n");
return 0;
}
^D
$ ./a.out
Compile time code!