This file contains 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
#!/data/data/com.termux/files/usr/bin/python3 | |
import ipaddress | |
import os | |
import socket | |
import socketserver | |
import struct | |
# version, type, key_len | |
request_header = struct.Struct("<III") |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/wait.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
#include <dirent.h> | |
#define NAME1 "testfile" | |
#define NAME2 "TESTFILE" |
This file contains 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
#define _DEFAULT_SOURCE | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/wait.h> | |
#include <sys/ptrace.h> | |
#include <linux/elf.h> /* NT_PRSTATUS */ |
This file contains 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
from elftools.elf.elffile import ELFFile | |
# Expected architecture for ELFs | |
EXPECTED_MACHINE = "EM_ARM" | |
# Paths | |
LOADER_FILE = "loader" # point to "~/termux/proot/src/src/loader/loader" | |
LINKER_FILE = "linker" # copy from "/system/bin/linker" possibly check with multiple devices | |
# TODO: glob + try-except NotInterestingElfException |
This file contains 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
<style> | |
.fade-right { | |
-webkit-mask-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,1)), color-stop(0.75, rgba(0,0,0,1)), to(rgba(0,0,0,0))); | |
mask: url(#fade_right_svg_mask); | |
filter: alpha(style=1 startX=75 finishX=100); | |
} | |
#mask_demo { | |
background: #d0d0d0; | |
height: 100px; | |
width: 500px; |