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 |
| import sys | |
| import argparse | |
| from pathlib import Path | |
| import lxml.etree as et | |
| def run_filter(file, risks): | |
| if len(sys.argv) < 1: | |
| print("usage: [script].py nessusfile.nessus") | |
| sys.exit(1) |
| import sys | |
| from pathlib import Path | |
| import lxml.etree as et | |
| if len(sys.argv) < 1: | |
| print("usage: [script].py nessusfile.nessus") | |
| sys.exit(1) | |
| file = sys.argv[1] |
| import sys | |
| from pathlib import Path | |
| import lxml.etree as et | |
| from ipaddress import ip_address, IPv6Address, IPv4Address | |
| if len(sys.argv) < 2: | |
| print("usage: [script].py nessusfile.nessus") | |
| sys.exit(1) | |
| file = sys.argv[1] |
| { | |
| "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", |