By default -g with no options will use the systems native debug symbols format. To specify gdb format, use -ggdb
gcc -ggdb -o main main.c
## Thank you to #pocoo for the help! | |
### dashboard.py | |
from flask import redirect, url_for, render_template, make_response, Blueprint | |
from flasky.services.auth import Auth | |
from flasky.responses.invalid import unauthenticated | |
from flasky.middlewares.auth import is_authenticated, has_role | |
dashboard_blueprint = Blueprint('dashboard', __name__) |
# Encrypt / Decrypt | |
import base64 | |
import sys | |
from cryptography.fernet import Fernet | |
action = input('Encrypt or Decrypt [e/d]?') | |
if action.lower() == 'encrypt' or action.lower() == 'e': | |
secret = input('Secret Key: ') | |
secret_bytes = int(secret).to_bytes(32, byteorder=sys.byteorder) |
$socket = new-object System.Net.Sockets.TcpClient('127.0.0.1', 413); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; | |
do | |
{ | |
$writer.Flush(); | |
$read = $null; |
import os | |
import datetime | |
import sys | |
NOW = datetime.datetime.now() | |
NOW_YEAR = NOW.year | |
def is_valid_age(age): | |
return age > 0 and age < 100 |
#!/bin/bash | |
# https://cloud.google.com/compute/docs/faq#ipranges | |
#nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
do | |
dig txt $LINE +short | |
done | tr " " "\n" | grep ip4 | cut -f 2 -d : | sort -n |
{ | |
"terminal.external.linuxExec": "termite", | |
"editor.fontSize": 20, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"workbench.enableExperiments": false, | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"update.enableWindowsBackgroundUpdates": false, | |
"update.mode": "none", |
#!/usr/bin/env python3 | |
''' | |
A simple Zap Parser to filter on certain things like port and plugin ID. More filters may be implemented later. | |
''' | |
import sys | |
from pathlib import Path | |
import lxml.etree as et | |
import csv |
export HTTP_PROXY_IP=x.x.x.x | |
export HTTP_PROXY_PORT=8080 | |
function useproxy() { | |
export http_proxy="http://${HTTP_PROXY_IP}:${HTTP_PROXY_PORT}/" | |
export https_proxy="http://${HTTP_PROXY_IP}:${HTTP_PROXY_PORT}/" | |
} | |
function disableproxy() { |
#!/usr/bin/env python3 | |
# Import smtplib for the actual sending function | |
import smtplib | |
import sys | |
import argparse | |
# Import the email modules we'll need | |
from email.message import EmailMessage |