Skip to content

Instantly share code, notes, and snippets.

View Macmod's full-sized avatar
🤖

Artur Marzano Macmod

🤖
View GitHub Profile
@Macmod
Macmod / cameraman.sh
Created October 12, 2023 17:13
Bash Cameraman - Records bash activity with timestamps using asciinema and saves it in an organized manner
#!/bin/bash
# Usage: cameraman DSTFOLDER <IDLETIME>
# If not provided, the default idletime of the recording is 2.5 seconds
# The script changes your PS1 format to
# one that contains the timestamp and full path
# of the current directory (adjust the format if needed)
#
# Put "cameraman DSTFOLDER" in your ~/.bashrc
# to have everything you do "on camera" from now on :-)
#
@Macmod
Macmod / dumbest-scanner.py
Last active April 28, 2023 11:00
Dumbest port scanner ever made
import socket
from random import randint, shuffle
import time
m = 2**10
M = 2**16
database = [OCTET1, OCTET2, OCTET3, OCTET4]
database_str = '.'.join(list(map(str, database)))

Keybase proof

I hereby claim:

  • I am macmod on github.
  • I am arturmarzano (https://keybase.io/arturmarzano) on keybase.
  • I have a public key ASAytvZTRcrMWqA67I3A9_84Q8vUXO-NDZvd_Ma_FeWrego

To claim this, I am signing this object: