Skip to content

Instantly share code, notes, and snippets.

View mzfr's full-sized avatar

Mehtab Zafar mzfr

View GitHub Profile
@mzfr
mzfr / ip2dh.py
Created May 27, 2020 06:04
Convert IP address to Decimal or hexadecimal format
"""
You can run this in the following format:
For decimal: python3 ip2dh.py D <Ip-address>
For Hexadecimal: python3 ip2dh.py H <Ip-address>
"""
#!/usr/bin/python3
import sys
if len(sys.argv) < 3:
@mzfr
mzfr / findtraitor.py
Created June 11, 2019 13:39
Find users who unstarred your repository
"""Help you find users who unstared your repository
"""
import os
import sys
import requests_cache
import argparse
URL = "https://api.github.com/repos/{}/{}/stargazers?per_page=100&page={}"
@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 / 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 / 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"/>
{
"proxy":{
"ssl_pass_through":{
"automatically_add_entries_on_client_ssl_negotiation_failure":false,
"rules":[
{
"enabled":true,
"host":".*\\.google\\.com",
"protocol":"any"
},
@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 / 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 / sessions_downloader.py
Created May 31, 2020 11:11
This script helps you download all sessions from tanner if your API is accesible from outside
"""
This is a small script that will help you download
all your data from snare tanner using tanner's API.
Always remember to deploy the API if the honeypot is
being deployed in the real world environment.
"""
import json
import requests