Skip to content

Instantly share code, notes, and snippets.

View c4p-n1ck's full-sized avatar
🦖
Working from home

|| Prof. - Xadk3!#0000 || c4p-n1ck

🦖
Working from home
View GitHub Profile
@c4p-n1ck
c4p-n1ck / m2crypto-certificates.py
Created February 13, 2023 03:43 — forked from eskil/m2crypto-certificates.py
Example of generating CA certs and CA signed certs using python m2crypto.
"""
Tools for creating a CA cert and signed server certs.
Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py
The mk_temporary_xxx calls return a NamedTemporaryFile with certs.
Usage ;
# Create a temporary CA cert and it's private key
cacert, cakey = mk_temporary_cacert()
@c4p-n1ck
c4p-n1ck / exploit.py
Last active April 7, 2022 09:18
Try Hack Me's modified Spring4Shell (CVE-2022-22965) Proof of Concept (PoC) by Captain NIck Lucifer* (*pronounced Lu-cipher) @naryal2580 @c4p-n1ck <naryal2580@gmail.com> <nicksb4b3@gmail.com>
#!/usr/bin/env python3
# Spring4Shell Exploit
# Original Exploit: https://github.com/BobTheShoplifter/Spring4Shell-POC/
# Modified by: AG | MuirlandOracle
# AGAIN Modified with fanciness by: Captain Nick Lucifer* (*pronounced Lucifer) @naryal2580 @c4p-n1ck
import urllib.parse, \
requests, readline, \
argparse, re
from string import printable
@c4p-n1ck
c4p-n1ck / skalism.sh
Created March 16, 2022 05:40
Setup Kali on Kasm
#!/bin/bash
echo -e 'TERM="xterm-256color"' | cat - ~/.bashrc | tee .f && mv .f ~/.bashrc
echo -e "sudo zsh\n" | tee -a ~/.bashrc
sudo apt update && sudo apt remove libwacom2 -y
sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install gdebi axel neofetch inetutils-ping mtr -y
exit
@c4p-n1ck
c4p-n1ck / gofload.sh
Created March 1, 2022 10:58
Uploads files to https://Gofile.io using curl, cut, jq.
#!/bin/bash
export FPATH=$1; export URL="https://$(curl -s https://api.gofile.io/getServer | cut -d '"' -f 10).gofile.io/uploadFile"
export API_TOKEN=""; export ROOT_FOLDER_ID="" # Please insert your variables here from https://gofile to make folder creation possible on the server.
# INFO: TODO: Iterate over given arguments (Iterate than using $1).
if [ -f $FPATH ]; then
echo "[*] Uploading File -> $1"
@c4p-n1ck
c4p-n1ck / denor.ts
Created January 22, 2022 13:12
A simple HTTP RCE code in deno.
// Denor -> Deno Door, refereing to a deno backdoor or just DenoRCE :wink:
const server = Deno.listen({ port: 8848 });
var header = new Headers();
header.append("Location", "/");