Skip to content

Instantly share code, notes, and snippets.

from os import walk, path
from hashlib import md5
print('[+] Running...')
# Find the original file's MD5 sum
with open('original.txt', 'rb') as file:
webshell_hash = md5(file.read()).hexdigest()
# Scan the entire system, and compare any file's hash to the malicious webshell's hash
NEW_USER_BORDER = "____________________________________________________________________________________________________"
# Read the log file
with open("log.txt") as f:
users = f.read()
final = ''
active_users = 0
# Enumerate all users
@vaknin
vaknin / .bashrc
Created May 19, 2022 06:04
Arch Linux Installation
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Aliases
alias ls='ls --color=auto'
alias vi='nvim'
@vaknin
vaknin / anbox.md
Last active April 8, 2024 13:07
anbox on arch