This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import secrets | |
import sys | |
import os | |
import argparse | |
RANDOM_STRING_CHARS = '''abcdefghijklmnñopqrstuvwxyzçáéíóúäëïöüâêîôûàèìòùåõýÿABCDEFGHIJKLMNÑOPQRSTUVWXYZÇÁÉÍÓÚÄËÏÖÜÂÊÎÔÛÀÈÌÒÙ0123456789!@$€¢¥£%^&*(-_=+)?¿¡^`´¬|~;,.·<>'"[]{}¨ƒ…†‡ˆ‰šžŠŽ‹›Œœ#«»ºª°±µÐæÆþ''' | |
class bcolors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
This configures PowerShell event logging. | |
PREREQUISITES | |
Must be executed with administrative rights. | |
RUNNING FROM CMD.EXE | |
cmd /c powershell -executionpolicy bypass -File <PathToThisFile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Author: @neoplacer | |
# Contributor: @socketz | |
""" | |
Fake FTP Server | |
~~~~~~~~~~~~~~~ | |
This is a simple fake FTP daemon. It stores the login data (username and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function rot_base64_e(){ | |
USAGE="\nrot_base64_e <input_file_or_string> <rotation> [<output> empty for print]\nUsage example: rot_base64_e file.txt 13 output.txt\n" | |
if [ -f "$1" ]; then | |
CONTENT=$(cat $1) | |
elif [ -n "$1" ]; then | |
CONTENT=$1 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import socket | |
import fcntl | |
import struct | |
def get_ip_address(ifname): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
fdsock = s.fileno() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | |
SOURCE="$(readlink "$SOURCE")" | |
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | |
done | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Start/stop the mailcatcher daemon. | |
# | |
### BEGIN INIT INFO | |
# Provides: mailcatcher | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Should-Start: $local_fs $remote_fs $network $syslog $named | |
# Should-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
## IODINE + WEBPROXY CLIENT SNIPPET | |
## by @socketz | |
## | |
## Put your values | |
SSH_IP="1.2.3.4" | |
SSH_USER="user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @namespace https://openuserjs.org/user/socketz | |
// @name ipv4info.user.js | |
// @description This script export ipv4info tables to CSV | |
// @copyright 2017, socketz (socketz.net) | |
// @license MIT; https://opensource.org/licenses/MIT | |
// @version 1.0.1 | |
// @match *://ipv4info.com/* | |
// @match *://*.ipv4info.com/* | |
// @exclude http://ipv4info.com/tools/* |
NewerOlder