Skip to content

Instantly share code, notes, and snippets.

View LiEnby's full-sized avatar

Li LiEnby

View GitHub Profile
@LiEnby
LiEnby / guessUpdate.py
Last active December 31, 2021 13:46
ps3 title update bruteforcer
#!/bin/python3.9
# PS3 Update Bruteforcer
# This script can find all updates on any given Bucket eg: (T2) and Bucket Secret eg: (f4f12ef10e3864dd)
# Created by SilicaAndPina
# Public Domain
import requests
import threading
import sys
@LiEnby
LiEnby / ent_validate.py
Last active August 29, 2022 12:34
Validate minecraft entitlements
#!/usr/bin/python3
# --=== Created by Li ===--
# Minecraft Entitlement Verifier
# Requires decrypted .ent (pre-1.19) or from PlayFab Api
# (i was too lazy to implement ent decryption)
#
# This script mathematically verifies if a given entitlement file was generated by Mojang or not.
#
# Usage:
# type plaintext.ent | py ent_validate.py (Windows)
@LiEnby
LiEnby / trans.py
Created September 10, 2022 04:11
Mass CXML Decompile / Recompile
from PIL import Image, ImageEnhance, ImageDraw
from lxml import etree
import os
import shutil
import struct
IS_INDICATOR = False
def create_stripe(img: Image.Image, bbox: tuple[int,int,int,int], height: int, color: tuple[int,int,int], index: int):
"id.sonyentertainmentnetwork.com"==window.location.host?(XMLHttpRequest.prototype.openOg=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(e,a,t){return"PUT"==e&&a.includes("avatar")?(this.sendOg=this.send,this.send=function(e){return console.log(e+' -> {"avatarId": 0}'),this.sendOg('{"avatarId": 0}')}):"PUT"==e&&a.includes("communication")&&(this.sendOg=this.send,this.send=function(e){return realNameData=JSON.parse(e),window.confirm('Remove real name? (Press OK)\nor set it to blank str " " (Press CANCEL)\n\n"Im about to end this mans whole carrier"')?(realNameData.realName.name.first="",realNameData.realName.name.middle="",realNameData.realName.name.last=""):(realNameData.realName.name.first=" ",realNameData.realName.name.middle="",realNameData.realName.name.last=" "),newBody=JSON.stringify(realNameData),console.log(e+" -> "+newBody),this.sendOg(newBody)}),this.openOg(e,a,t)},alert("PSN Default Avatar / RealName Removal Script by SilicaAndPina!\n\nSimply set a new Avatar or RealName with t
@LiEnby
LiEnby / calc-checksum.py
Created February 18, 2023 08:07
Worms 4 Mayhem (PS2) Checksum Calculator
#!/usr/bin/python3
# Worms 4: Mayhem (PS2) Checksum Calculator.
# Created by Li 2/18/2023.
import struct
# Read save file
save = open("BESLES-53096W4MA", "rb").read()
# Set count to 0
import requests
import base64
from lxml import etree
import json
import hashlib
from io import StringIO
# specify user id
USER_ID = "w5YcMrssXv"
import requests
import random
import json
from faker import Faker
FAKE = Faker()
dropdown_options = ["10th and Main Public Infrastructure District","Academy for Math, Engineering and Science","Active Re-Entry, Inc.","Administrative Office of the Courts","Advantage Arts Academy","Agriculture and Food, Department of","Alcoholic Beverage Control, Department of","Alcoholic Beverage Services, Department","Alpine City","Alpine Conservation District","Alpine Cove Water Special Service District","Alpine School District","Alta Canyon Recreation Special Service District","Alta Town","Altamont Town","Alton Town","Amalga Town","American Academy of Innovation","American Fork City","American Fork City Redevelopment Agency","American Fork Metropolitan Water District","American Leadership Academy","American Preparatory Academy- Utah Charter Academies","Angell Springs Special Service District","Annabella Town","Antimony Cemetery Maintenance District","Antimony Town","Apple Valley Town","Arrowhead Springs Public Infrastruct
@LiEnby
LiEnby / MSEXCEL-SHEETPROTECTION.md
Last active September 27, 2024 15:20
Reverse Engineering; Microsoft Excel Sheet Protection

Microsoft Excel offers a feature called "Sheet Protection" it essentially allows you to lock down an excel document so you cannot edit certain sheets and aspects of it attempting to edit protected sheets will return an error message: image

and trying to unprotect it under the review tab, does ask for a password.

image

i figured; "This is MS Excel, surely someone has found a way to disable this?"

import os
import yaml
dbyml = {"version":2, "firmware": 3.60, "modules": {}}
ymls = os.listdir("360")
for yml in ymls:
ymldata = yaml.safe_load(open("360/"+yml, "rb").read())
@LiEnby
LiEnby / Mysteries of the Bedrock PS4 "Editions" Button.md
Last active September 21, 2025 23:46
Mysteries of the Bedrock PS4 "Editions" Button

Hey i decided to investigate the mysterious "Editions" button on minecraft bedrock, and specifically wanted to figure out the exact conditions for it to appear/disappear. and/or if theres a way to make it appear

i saw lots of videos online that made no sense, claiming you had to play LCE on v1.00 for 5 hours, but this apparnetly "only sometimes works" also apparently for some just getting the 1.00 disc and putting it in just works

use the original 1.00 DISC version and play the LCE, or like strangley de-activating your ps4 as primary and then playing on another user and suddenly editions appears ???

it all made little sense, based on what i knew about how playstation stuff worked,