Skip to content

Instantly share code, notes, and snippets.

View Q-in's full-sized avatar
☺️

Aroma Q-in

☺️
View GitHub Profile

No such file or directory: '/root/.local/share/undetected_chromedriver/undetected/chromedriver'

apt-get install chromium-chromedriver
@Q-in
Q-in / ReplaceRawWithVirtual.cff
Last active August 2, 2022 13:32
cff explorer script, replace the raw of SectionHeaders with virtual
-- prints string to the current log and goes to new line
function AddToLog(str)
-- we can do this because hLog is a global variable
if hLog then
LogPrint(hLog, str .. "\n")
end
end
filename = GetOpenFile("Open...", "All\n*.*\nexe\n*.exe\ndll\n*.dll\n")

ssh:

Openssh Client
Openssh Server

win + x
notepad C:\ProgramData\ssh\sshd_config

#Match Group administrators
# AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
@Q-in
Q-in / note.md
Last active November 12, 2021 03:17
vps => vpn
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

nvim /etc/shadowsocks-r/config.json
/etc/init.d/shadowsocks-r start | stop | restart | status

vim /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 10132 -j ACCEPT

tmux

nvim ~/.tmux.conf
set -g mouse on
tmux
Ctrl+b+:
source ~/.tmux.conf

pfctl

;eax, ebx, ecx, edx, esi, edi, ebp, esp等都是X86 汇编语言中CPU上的通用寄存器的名称,是32位的寄存器。如果用C语言来解释,可以把这些寄存器当作变量看待。

add eax,-2 ;可以认为是给变量eax加上-2这样的一个值。

EAX(eax): 是"累加器"(accumulator), 它是很多加法乘法指令的缺省寄存器。

EBX(ebx): 是"基地址"(base)寄存器, 在内存寻址时存放基地址。

ECX(ecx): 是计数器(counter), 是重复(REP)前缀指令和LOOP指令的内定计数器。

elixir

Base.decode64!("eyJoZWxsbyI6ICJ3b3JsZCIsICJ5ZWFyIjogMjAxOX0=", padding: false) |> IO.puts()
#字符串 -> 16进制(hex)
Base.encode16("foobar", case: :lower)
#16进制(hex) -> 字符串
Base.decode16!("666f6f626172", case: :lower)

"666f6f626172"|> String.to_charlist |> Enum.chunk_every(2)
@Q-in
Q-in / match.ps1
Created January 14, 2021 08:42
powershell scripts
$p= (frida-ps | Select-String -Pattern xxx.exe) -split ' ' -imatch 0
frida -p $p