Skip to content

Instantly share code, notes, and snippets.

View superswan's full-sized avatar

Lem E. Tweakit superswan

View GitHub Profile
@superswan
superswan / hp_15dw1036ne_bios_unlock.py
Created August 4, 2026 01:10
hp_15dw1036ne_bios_unlock.py
#!/usr/bin/env python3
"""
hp_15dw1036ne_bios_unlock.py — one-file, from-scratch BIOS mod for the
HP 15-dw1036ne (Insyde H2O firmware, BIOS F.68, Compal ODM board 85F2).
Takes your own stock dump of this exact BIOS version and reproduces, byte
for byte, a firmware image that has been flashed and tested on real hardware
three separate times. It combines three independent findings from a long
reverse-engineering session:
1. RSA-2048 DXE-FV signature-check bypass ("H19SignCheckPei" crack)
@superswan
superswan / westfax-idor-report.md
Last active July 3, 2026 14:38
WestFAX IDOR Report

WestFAX Porting Portal – IDOR & Sensitive Document Access

This issue was responsibly disclosed to the vendor, acknowledged, and subsequently remediated

Summary

A set of access control vulnerabilities was identified in the WestFAX porting portal allowing unauthorized access to sensitive customer porting data and uploaded documents. The issues include:

  • Insecure Direct Object Reference (IDOR) in port request viewing
  • IDOR in port request modification endpoint
@superswan
superswan / 1_opencode-desktop-ralph-wiggum.md
Last active February 4, 2026 04:42
OpenCode Desktop Easy Ralph Wiggum Loop

Opencode Desktop Ralph Wiggum hack

@superswan
superswan / chlordane.json
Created September 4, 2024 18:36
Chlordane Theme (vim)
{
"background": "#000000",
"black": "#000000",
"blue": "#557755",
"brightBlack": "#223322",
"brightBlue": "#77DD88",
"brightCyan": "#88EE99",
"brightGreen": "#77DD88",
"brightPurple": "#55AF66",
"brightRed": "#55AF66",
@superswan
superswan / _persistent_shell.md
Last active August 2, 2023 16:56
persistent reverse shell in python. reestablishes connection if shell is exited or connection is broken.

Python Persistent Shell + Connection Manager (Go)

Reverse Shell

Python reverse shell that reconnects to server (ncat/socat/connection manager/etc)

Connection Manager

A neat little server written in Go. It can handle multiple sessions from the client.py script or any other valid reverse shell (not tested).

<html>
<head>
<style>
body {
overflow-y: hidden; /* Hide vertical scrollbar */
overflow-x: hidden; /* Hide horizontal scrollbar */
}
#dvd {
position: absolute;
transform-origin: center center;
@superswan
superswan / Sonicwall_ASN_Blocklist.md
Last active November 28, 2022 15:35
Block ASN on SonicWall via SSH CLI
@superswan
superswan / NFTContract.sol
Created August 10, 2022 00:27
NFT Contract Template - Pay to Mint
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract TREEMINTTEST is ERC721, ERC721URIStorage, ERC721URIStorage, Ownable {

Ansible adhoc commands (One Liners)

Make a note of below assumptions for one liners explained on this page are as below,

User root - the superhero, superuser User normaluser - user that has root sudo privilege and all ansible required connectivity in place User user1 - user that has root sudo privilege

##Understanding basic differences in commands using various users with various rights

To run command on all servers to check reach ability from ansible point of view with 25 parallel forks with current user (i.e. root or normaluser)