Skip to content

Instantly share code, notes, and snippets.

View Onils's full-sized avatar
🤓
high level.

风迷 Onils

🤓
high level.
View GitHub Profile
@Onils
Onils / show_same_rows.sh
Created August 13, 2020 03:42
Displays the same rows
awk 'FNR==NR{a[$1];next}($1 in a){print}' a.string b.string
@Onils
Onils / check_python_evil_request.sh
Last active August 7, 2020 08:08
Detect malicious packages of python request
for i in $(find / -xtype f -name "python" 2>/dev/null );do $i -m pip list 2>/dev/null |grep "request ";done
@Onils
Onils / strings_extraction
Last active July 16, 2020 09:41
linux mac new strings
#linux
#!/bin/bash
(strings -a -td "$@" | sed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 A \2/' ; strings -a -td -el "$@" | sed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 W \2/') | sort -n
#mac os
#!/bin/bash
@Onils
Onils / audit.rules
Created June 30, 2020 02:51
process injection with ptrace
-a always,exit -F arch=b64 -S ptrace -F a0=0x4 -F key=ptrace_poketext
-a always,exit -F arch=b64 -S ptrace -F a0=0x5 -F key=ptrace_pokedata