Skip to content

Instantly share code, notes, and snippets.

View mzfr's full-sized avatar

Mehtab Zafar mzfr

View GitHub Profile
@mzfr
mzfr / dataflow.py
Last active November 21, 2023 11:48
Script to get strace logs from APKs.
import json
import re
import argparse
from glob import glob
from os.path import join, basename, splitext
PATTERN = r"\{EPOLLIN, \{u32=\d+, u64=\d+}}"
SENDTO_FLOW = {}
ALL_FLOWS = {}
@mzfr
mzfr / Civ6_FontStyles_EFIGS.xml
Created July 18, 2023 09:41
Increase the Fonts in Civ 6 when UI scaling option is greyed out on bigger monitors
<?xml version="1.0" encoding="utf-8"?>
<StyleSheet>
<!-- MOD fixes "!" at 14 points to not look like a line -->
<FontNormal8 Font="MyriadPro-Semibold-MOD.otf" FontSize="10"/>
<FontNormal9 Font="MyriadPro-Semibold-MOD.otf" FontSize="11"/>
<FontNormal10 Font="MyriadPro-Semibold-MOD.otf" FontSize="12"/>
<FontNormal11 Font="MyriadPro-Semibold-MOD.otf" FontSize="13"/>
<FontNormal12 Font="MyriadPro-Semibold-MOD.otf" FontSize="14"/>
<FontNormal13 Font="MyriadPro-Semibold-MOD.otf" FontSize="15"/>
<FontNormal14 Font="MyriadPro-Semibold-MOD.otf" FontSize="16"/>
@mzfr
mzfr / exercise_4.ex
Created June 18, 2022 12:06
Solutions to The Little Elixir & OTP guidebook exercises
defmodule Stooge.Worker do
@moduledoc """
Exercises from The Little Elixir & OTP Guidebook, Section 4.4.
Write a `GenServer` taht can store any valid Elixir term, given a key. Here are a few operations to get you started:
- `Cache.write(:stooges, ["Larry", "Curly", "Moe"])`
- `Cache.read(:stooges)`
- `Cache.delete(:stooges)`
- `Cache.clear(:stooges)`
- `Cache.exist(:stooges)`
"""
@mzfr
mzfr / bookstack_md_import.py
Last active May 5, 2022 14:13
Script to import markdown to bookstack book
import requests
from glob import glob
from pathlib import Path
from os import path
BOOKSTACK_URL = "" # Your Bookstack URL
API_ID_TOKEN = "" # API ID and TOKEN in "ID:TOKEN" format
BOOK_ID = 8 #Your Book ID
Directory_path = "/home/notes/Web" # Path to the directory having all the files which needs to be uploaded as new pages
@mzfr
mzfr / WAHH_Task_Checklist.md
Created August 19, 2020 15:35 — forked from jhaddix/Testing_Checklist.md
The Web Application Hacker's Handbook - Task Checklist - Github-Flavored Markdown
@mzfr
mzfr / google-dorks
Created August 10, 2020 11:52 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@mzfr
mzfr / cloud_metadata.txt
Created July 30, 2020 10:48 — 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
{
"proxy":{
"ssl_pass_through":{
"automatically_add_entries_on_client_ssl_negotiation_failure":false,
"rules":[
{
"enabled":true,
"host":".*\\.google\\.com",
"protocol":"any"
},
@mzfr
mzfr / bb-foxyproxy-pattern.json
Created June 26, 2020 05:07 — forked from ignis-sec/bb-foxyproxy-pattern.json
foxyproxy pattern (install Storage area explorer and import this file, foxyproxy import/export is broken)
{
"30523382": {
"className": "Proxy",
"data": {
"bypassFPForPAC": true,
"color": "#f57575",
"configUrl": "",
"credentials": "U2FsdGVkX1+tf3lvD5TBClW2UUSZAT4AWsCo/i0kU2M=",
"cycle": false,
"enabled": true,
@mzfr
mzfr / Tanner-data-analysis.ipynb
Created May 31, 2020 11:16
Some sample code for analyzing data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.