Skip to content

Instantly share code, notes, and snippets.

View cosmosgenius's full-sized avatar
💭
Websocket debugging

Sharat MR cosmosgenius

💭
Websocket debugging
View GitHub Profile
@cosmosgenius
cosmosgenius / isitflutter.py
Created July 23, 2021 10:42
Detect if the app is flutter or not
import argparse
import os.path
from zipfile import ZipFile
parser = argparse.ArgumentParser()
parser.add_argument("app", help="Path to IPA file")
args = parser.parse_args()
ipalocation = args.app
if not os.path.isfile(ipalocation):
raise Exception("file missing")
@cosmosgenius
cosmosgenius / irene_globals.user.js
Last active March 14, 2024 09:30
Tampermonkey script for scope injection in irene
// ==UserScript==
// @name Irene Globals
// @namespace https://appknox.com/
// @version 2.0.0
// @description load irene globals for console operations
// @author cosmosgenius
// @match http://irene.local:4200/*
// @match http://localhost:4200/*
// @match https://secure.appknox.com/*
// @icon https://secure.appknox.com/images/favicon.ico
@cosmosgenius
cosmosgenius / run.py
Last active April 29, 2024 08:38
Render a geojson file with openstreetmap tiles to png
import geopandas as gpd
import matplotlib.pyplot as plt
import contextily as ctx
# Read the GeoJSON file
gdf = gpd.read_file("file.geojson")
# Plot the GeoJSON data
fig, ax = plt.subplots(figsize=(5, 5))
gdf.plot(ax=ax, edgecolor='blue', facecolor='none') # Plot GeoJSON data