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 / newfolderfix.reg
Created June 25, 2020 09:47
New Folder broken fix Win 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{11dbb47c-a525-400b-9e80-a54615a090c0}]
@="CLSID_ExecuteFolder"
[HKEY_CLASSES_ROOT\CLSID\{11dbb47c-a525-400b-9e80-a54615a090c0}\InProcServer32]
@="ExplorerFrame.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New]
@="{D969A300-E7FF-11d0-A93B-00A0C90F2719}"
[HKEY_CLASSES_ROOT\Folder]
@="Folder"
@jpdias
jpdias / install.sh
Created May 4, 2020 14:53
Lubuntu 18.04 Enhanced Session on Hyper-V
#!/bin/bash
#
# This script is for Ubuntu 18.04 Bionic Beaver to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
###############################################################################
@jpdias
jpdias / evaluationscripts.sh
Last active May 31, 2020 17:40
Eval Script for TP2 Part1 WC - SOPE 2020 FEUP
#!/bin/bash
echo "making stuff"
make
#Version 1
echo "> running server 30s"
/usr/bin/time -f "%E real,%U user,%S sys" -o "qtime.out" ./Q1 -t 30 door > q.log 2> q.err &
pid_c=$!
@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
@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)

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 / 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
@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 / 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 / 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"}