Skip to content

Instantly share code, notes, and snippets.

@M507
M507 / ec2-metadata
Created December 29, 2023 20:17 — forked from copernicus/ec2-metadata
ec2-metadata: a simple tool for exploring Amazon EC2 metadata, extended with network and VPC info
#!/bin/bash
#
#########################################################################
#This software code is made available "AS IS" without warranties of any #
#kind. You may copy, display, modify and redistribute the software #
#code either by itself or as incorporated into your code; provided that #
#you do not remove any proprietary notices. Your use of this software #
#code is at your own risk and you waive any claim against Amazon #
#Digital Services, Inc. or its affiliates with respect to your use of #
#this software code. (c) 2006-2007 Amazon Digital Services, Inc. or its #
@M507
M507 / gist:2f414242c4abff2d5ed2fbfcbb3fe34f
Created December 20, 2023 03:15
retrieve information about the version of the database
SELECT version();
SHOW VARIABLES LIKE 'version';
SELECT @@version;
SELECT version();
SELECT @@version;
SELECT * FROM v$version;
SELECT * FROM $version;
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY('productlevel'), SERVERPROPERTY('edition');
SELECT sqlite_version();
@M507
M507 / gist:c499da28f89953f973e3c6e48e6e98c6
Created November 25, 2023 21:32
86a464881678c47bc3402b758fbdf404e47bd13a5de82554f2e60086670f391d
86a464881678c47bc3402b758fbdf404e47bd13a5de82554f2e60086670f391d
@M507
M507 / clickjacking.html
Created November 25, 2023 21:30
clickjacking.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Opener</title>
</head>
<body>
<h1>URL Opener</h1>
@M507
M507 / 4.1.Information.Gathering.sh
Created November 21, 2023 15:34
4.1.Information.Gathering.sh
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <domain>"
exit 1
fi
domain="$1"
url_encode() {
echo -n "$1" | xxd -plain | tr -d '\n' | sed 's/\(..\)/%\1/g'
}
while IFS= read -r line; do
@M507
M507 / Set-SSHPermissions.ps1
Last active November 21, 2023 15:32 — forked from mgeeky/Set-SSHPermissions.ps1
Powershell script to set CHMOD permissions for SSH Private PEM key files in Windows. This is to avoid nagging "WARNING: UNPROTECTED PRIVATE KEY FILE!" message
#
# Sets chmod permissions for the PEM file to be used with Windows' OpenSSH
# without annoying "WARNING: UNPROTECTED PRIVATE KEY FILE!" message.
#
function Set-SSHPermissions {
param(
[string]
$FilePath
66e6584084f60ebe96f809e624374ca5d8a7d20b
{
"project_options":{
"misc":{
"collaborator_server":{
"type":"none"
}
}
},
"proxy":{
"http_history_display_filter":{
@M507
M507 / poc.py
Created January 23, 2022 05:55
Exploits
# 8d16362098c47e4628413f20f6e5dd8840bd804950cd6714bb56e6b4e87c40d0
# fmtstr_payload() is not used here, it's more fun this way ;)
from pwn import *
import sys
# 64bit
def get_process(is_remote = False):
if is_remote:
return remote(*REMOTE_PATH)

.*\.(css|js|svg|css|svg|png|jpeg|jpg|gif|pdf|svg|md|ico|js|htm|html|txt|md|woff2|woff|webp|ttf|xml|doc|docx|bmp|mp3|mp4|json)