Skip to content

Instantly share code, notes, and snippets.

View Sid110307's full-sized avatar
:octocat:
Writing, debugging, and babysitting code

Siddharth Praveen Bharadwaj Sid110307

:octocat:
Writing, debugging, and babysitting code
View GitHub Profile
@Sid110307
Sid110307 / Inventory.ps1
Created August 12, 2025 08:15
List all installed apps, programs, features, etc.
[CmdletBinding()]
param()
function Test-Cmd { param([string]$Name) [bool](Get-Command $Name -ErrorAction SilentlyContinue) }
function Test-Try { param([scriptblock]$Block) try { & $Block } catch { } }
$results = New-Object System.Collections.Generic.List[object]
$seenKeys = [System.Collections.Generic.HashSet[string]]::new([System.StringComparer]::OrdinalIgnoreCase)
$dupeCount = 0
@Sid110307
Sid110307 / sid-debian.md
Last active June 2, 2025 17:42
Commands for chroot
# Entering root
sudo su

# Initializing mounts
mkdir -p /mnt/chroot/boot/efi
mount /dev/sdb4 /mnt/chroot
mount /dev/sdb1 /mnt/chroot/boot
mount /dev/sdb3 /mnt/chroot/boot/efi
for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do sudo mount -B $i /mnt/chroot$i; done
@Sid110307
Sid110307 / CameraHack.py
Last active August 12, 2025 08:37
Camera Hack
#!/usr/bin/env python3
# Credit: ANGELSECURITYTEAM
import requests
import re
import colorama
colorama.init()
print("""
@Sid110307
Sid110307 / Python3ANSI.py
Last active August 12, 2025 08:38
Quick help for ANSI Colors
#!/usr/bin/env python3
for i in range(30, 37 + 1):
print("\033[%dm%d\t\t\033[%dm%d" % (i, i, i + 60, i + 60))
print("\033[39m\\033[49m - Reset color")
print("\\033[2K - Clear Line")
print("\\033[<L>;<C>H or \\033[<L>;<C>f - Put the cursor at line L and column C.")
print("\\033[<N>A - Move the cursor up N lines")
print("\\033[<N>B - Move the cursor down N lines")