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
import re | |
import time | |
import serial | |
import pykeyboard | |
k = pykeyboard.PyKeyboard() | |
ENTER = k.enter_key | |
password = 'My_Super_P4SSWoRD' | |
print('Starting serial device...') | |
ser = serial.Serial(port='/dev/ttyUSB0', baudrate=9600) |
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 | |
export PROFILE='my-security-profile' | |
export KEY='12345678-abcd-efgh-ijkl-1234567890' | |
function encrypt() { | |
aws --profile "$PROFILE" \ | |
kms encrypt \ | |
--key-id "$KEY" \ | |
--plaintext "file://$1" \ |
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
# UDEV Rule for Chinese RFID 125KHz R/W | |
# Creating a fixed device when connecting to USB | |
ACTION=="add", \ | |
ATTR{idProduct}=="6850", \ | |
ATTR{idVendor}=="6688", \ | |
RUN+="/bin/sh -c 'rm -f /dev/ttyRFID0; mknod /dev/ttyRFID0 c $major $minor; chown root:root /dev/ttyRFID0; chmod 0660 /dev/ttyRFID0'" | |
# Removing after disconnecting | |
ACTION=="remove", \ |
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
<!DOCTYPE html> | |
<html> | |
<head><meta charset="utf-8" /> | |
<title>Local Sagemaker</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> |
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
docker run --name postgres \ | |
-e POSTGRES_USER=pgadmin \ | |
-e POSTGRES_PASSWORD=pgpasswd \ | |
-e POSTGRES_DB=pgdb \ | |
-v /my/own/datadir:/var/lib/postgresql/data \ | |
-d postgres | |
docker run --name mysql \ | |
-e MYSQL_USER=myadmin \ |
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 | |
docker run -d -p 8080:80 --name target hmlio/vaas-cve-2014-6271 | |
cat << EOF | docker exec -i target bash | |
export EXPLOIT="() { echo 'Hello from Shell'; }; echo 'This machine is vulnerable'" | |
bash | |
EOF |
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
import sys | |
import pandas as pd | |
import numpy as np | |
from pandas.io import sql | |
from sqlalchemy import create_engine | |
from multiprocessing import Pool as pool | |
from threading import Lock as lock | |
# Get the data from CSV into a DataFrame | |
df = pd.read_csv('../bases/clientes.csv', sep=';') |
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
# pip install pyuserinput | |
import subprocess | |
import sys | |
import time | |
import pykeyboard | |
if len(sys.argv) > 1: | |
ubiqui = sys.argv[1] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Grammarly - Type your text</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
textarea { | |
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; |
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
from multiprocessing import Pool as pool | |
from subprocess import Popen as run | |
from os import listdir as ls | |
# all files begining with this will be executed | |
PREFIX = 'python_scripts_' | |
# set for the number of cores you have | |
THREADS = 4 |