Skip to content

Instantly share code, notes, and snippets.

View r888800009's full-sized avatar

Lin, Yong Xiang r888800009

View GitHub Profile
r888800009 /
Created September 17, 2023 06:35 — forked from tothi/
reverse PowerShell cmdline payload generator (base64 encoded)
#!/usr/bin/env python3
# generate reverse powershell cmdline with base64 encoded args
import sys
import base64
def help():
print("USAGE: %s IP PORT" % sys.argv[0])
r888800009 /
Created April 6, 2023 20:25 — forked from rene-d/
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"
r888800009 /
Created April 18, 2022 17:56 — forked from naholyr/
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.


Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)

ELF Format Cheatsheet


Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.



r888800009 / steps.asciidoc
Created December 18, 2021 01:50 — forked from robjens/steps.asciidoc
Grsec Arch Long Term Support Hacking

ArchLinux linux-grsec-lts


Up-to-date OS

Always ensure you have the latest set of software (Arch is a rolling release system in case you didn’t know).

# In my case, enable `rw` mount of `/boot` or, if linux updates, will fail due to `ro` mode preventing write to disk partition
r888800009 /
Created November 16, 2021 22:55 — forked from crunchprank/
Cheat Sheet For Password Crackers

Cheat Sheet For Password Crackers

This list was posted over at Unix-Ninja. I take no credit for these. Posting these here for my own convenience.

Extracting Data

Extract md5 hashes

# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
r888800009 / iterm-colors-to-vscode.js
Last active November 4, 2021 19:50 — forked from 2xAA/iterm-colors-to-vscode.js
Convert iTerm2 "itermcolors" file to VSCode terminal color scheme
/* Generate colors using */
const col = [] // run your .itermcolors file through the above parser and replace the array with the output
function componentToHex(c) {
const hex = c.toString(16)
return hex.length === 1 ? `0${hex}` : hex
const mapping = {
'terminal.background':'Background Color',



  • valgrind
r888800009 /
Last active November 30, 2018 09:47



git config --global "name"
git config --global ""


  1. 設定ssh金鑰(設定到ssh_config)