Skip to content

Instantly share code, notes, and snippets.

@sharpicx
sharpicx / test.py
Created January 5, 2024 03:48
TheFatRat - FIle Pumper
import sys
#python fpump.py [file] [size] [-mb/-kb]
if len(sys.argv) < 4:
sys.exit('[-] Missing argument!\n[+] Usage: python pumper.py [file] [size] [-mb/-kb]')
fp = sys.argv[1]
size = int(sys.argv[2])
tp = sys.argv[3]
@sharpicx
sharpicx / test.js
Last active January 3, 2024 12:03
Puffy - Hacktrace
var axios = require("axios");
var readline = require("readline");
var cheerio = require("cheerio");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function hex(data) {
@sharpicx
sharpicx / fuck.cs
Created December 28, 2023 13:05
latian phising sama bang emants
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace testing_bytes_for_the_binary
@sharpicx
sharpicx / decrypt.c
Created December 26, 2023 17:35
DevilGod - Hacktrace (Part 2)
#include <ctype.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
void *encrypt(char *str, int32_t key) {
uint32_t length = strlen(str);
void* result = malloc(length + 1);
@sharpicx
sharpicx / server.js
Created December 26, 2023 11:25
DevilGod - Hacktrace
var CryptoJS = require("crypto-js");
var http = require("http");
var axios = require("axios");
const { URLSearchParams } = require("url");
let alphabet = "abcdefghijklmnopqrstuvwxyz";
let fixedKey = "zyxwvutsrqponmlkjihgfedcba";
function isUpperCase(letter) {
let charCode = letter.charCodeAt(0);
@sharpicx
sharpicx / server.py
Created December 21, 2023 19:51
snippet codes i made for python https server instead of `python -m http.server`
# openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt
import http.server
import ssl
from http.server import HTTPServer, SimpleHTTPRequestHandler
host = '0.0.0.0'
port = 8000
certfile = 'server.crt'
keyfile = 'server.key'
@sharpicx
sharpicx / api_server.py
Last active January 8, 2024 03:19
FRP with Flask (REST API) VPS Tunnel
from flask import Flask, request
from flask_ipfilter import IPFilter, Whitelist
import requests
app = Flask(__name__)
HTTP_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'] # getting all methods work on the target
ip_filter = IPFilter(app, ruleset=Whitelist())
ip_filter.ruleset.permit("xxx.xxx.xx.x") # whitelisting my office public IP
@sharpicx
sharpicx / WinDbg and LLDB commands.md
Created November 29, 2023 03:53 — forked from rafaelldi/WinDbg and LLDB commands.md
WinDbg and LLDB commands

Starting

Command WinDbg LLDB
Start windbg {executable} [{args}] lldb {executable} [--args]
Attach windbg -p {pid} lldb --attach-pid {pid}

Symbols and modules

Command WinDbg LLDB
(Re)load symbols lb {module-name} target symbols add {symbol-file-path}
@sharpicx
sharpicx / fuzzing.py
Last active November 28, 2023 21:06
vulnserver - challenge ppt dari pak marie (f3ci)
# running vulnserver in wine
# debug it on winedbg with gef plugin enabled
from pwn import *
import string
from struct import pack
context.log_level = "DEBUG"
r = remote("127.0.0.1", 9999)
'''
else if (strncmp(RecvBuf, "TRUN ", 5) == 0) {
@sharpicx
sharpicx / example.sh
Created November 27, 2023 10:45
converting /proc/net/tcp into readable stuff using python and shell
#!/bin/bash
convert_ip_address() {
IFS=':' read -ra parts <<< "$1"
ip=""
for part in "${parts[@]:0:4}"; do
ip+=$(printf "%d." 0x$part)
done
ip=${ip::-1}
port=$(printf "%d" 0x${parts[4]})