Skip to content

Instantly share code, notes, and snippets.

View superswan's full-sized avatar

Lem E. Tweakit superswan

View GitHub Profile
@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)

@superswan
superswan / ArchLinuxWSL2.md
Created January 27, 2022 19:20 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

PlayStation 2 Directory

Database of all NTSC releases for the PlayStation2 console with download. 1500 games!

Downloads Available: 1496/1796

@superswan
superswan / raspi.sh
Last active April 27, 2022 00:21
Script for raspberry pi emulation. Will create a QEMU vm with fresh raspian. https://azeria-labs.com/emulate-raspberry-pi-with-qemu/
#!/bin/sh
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
GIB_IN_BYTES="1073741824"
target="${1:-pi1}"