This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* tiny telnet-like daemon with CR/LF normalization | |
| * build: musl-gcc -static -O2 -s -o mytelnetd mytelnetd.c | |
| * usage: ./mytelnetd -p 2323 -l /bin/sh | |
| */ | |
| #define _POSIX_C_SOURCE 200112L | |
| #define _GNU_SOURCE | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cat /proc/iomem | |
| echo "0000:09:00.0" > /sys/bus/pci/devices/0000:09:00.0/driver/unbind | |
| shared_mem=$(grep Multikernel /proc/iomem | awk '{print $1}' | cut -d'-' -f1) | |
| memmap=$( | |
| awk '/Multikernel Shared/ { | |
| addr_range = $1; |
NewerOlder