Skip to content

Instantly share code, notes, and snippets.

View jpdias's full-sized avatar
🔄
Engineering In Progress

JP Dias jpdias

🔄
Engineering In Progress
View GitHub Profile
@jpdias
jpdias / vis.py
Created December 23, 2016 11:32
Plotly Example
#!/usr/bin/python
# -*- coding: utf-8 -*-
import csv
import random
import string
import time
import os
from datetime import datetime
from pymongo import MongoClient
from plotly import tools
@jpdias
jpdias / pdf_numeric_password_cracker.py
Last active August 21, 2018 17:05
Guessing PDF passwords (birthdate format) - Any PDF version/Protection level
import pikepdf
import sys
import subprocess
from datetime import timedelta, date
filePath = "pdf_name.pdf"
def daterange(date1, date2):
for n in range(int ((date2 - date1).days)+1):
yield date1 + timedelta(n)
@jpdias
jpdias / package.json
Created November 27, 2018 02:53
get stats from gitlab
{
"name": "stats-gitlab",
"version": "1.0.0",
"description": "",
"main": "script.js",
"dependencies": {
"request": "^2.88.0"
},
"devDependencies": {},
"scripts": {
@jpdias
jpdias / cloudSettings
Last active January 12, 2020 18:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-06T13:48:13.476Z","extensionVersion":"v3.2.9"}
@jpdias
jpdias / zipCracker.py
Created April 21, 2019 20:42
Based on aneopsy Github repository: https://github.com/aneopsy/zipCracker
#!/usr/bin/python
import argparse
import zipfile
import os
import sys
from time import time
def _cli_opts():
'''
@jpdias
jpdias / .zshrc
Last active November 30, 2019 17:27
Configuring a new Ubuntu install
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history
source ~/.zplug/init.zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "plugins/git", from:oh-my-zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
@jpdias
jpdias / eval.sh
Last active June 13, 2019 15:02
Some helper scripts to analyze code projects.
#run once
cd $HOME
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.15.0/pmd-bin-6.15.0.zip
unzip pmd-bin-6.15.0.zip
#analyze project metrics java
alias pmd="$HOME/pmd-bin-6.15.0/bin/run.sh pmd"
pmd -d /usr/src -R rulesets/java/quickstart.xml -f text
#summarized

Another year passes by, another ØxOPOSɆC Mɇɇtuᵽ Xmas challenge. This year the challenge was an Android one by @zezadas.

I will do this one quite short and to the point.

First thing first, the elected tool of the trade was APK Studio which bundles together a good set of tools (decompiler, app sign, etc.) in a friendly looking interface.

First Flag

The app was a web app that opened the ØxOPOSɆC Mɇɇtuᵽ meetup page. Not much there. Usually, for web apps, if you have debugging enabled, you can easily interact with the app by using the remote debugging capabilities of Google Chrome (more on this later).

@jpdias
jpdias / RT-N12E-B1.md
Created December 15, 2019 22:06
ASUS RT-N12E-B1

ramips: add support for Asus RT-N11P / RT-N12+ / RT-N12E b1

This is a variant of the MT7620N-based Asus routers.

Specifications:

  • MT7620N (580 MHz)
  • 32 MB RAM
  • 8 MB Flash
  • 5x 10/100Mbps Ethernet (built-in switch)
@jpdias
jpdias / platformio_boards.ini
Last active February 12, 2020 13:07
Listing my default configs for my boards :chip:
[env:mxchip_az3166]
platform = ststm32
framework = arduino
board = mxchip_az3166
monitor_speed = 115200
[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino