Skip to content

Instantly share code, notes, and snippets.

View extremecoders-re's full-sized avatar
๐Ÿถ
๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ๐Ÿถ

extremecoders-re

๐Ÿถ
๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ ๐Ÿถ๐Ÿถ
View GitHub Profile
@extremecoders-re
extremecoders-re / -finally-solving-the-weasel-keygenme.ipynb
Last active February 4, 2020 08:11
(Finally) Solving the Weasel keygenme.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extremecoders-re
extremecoders-re / wifi-calling-android.md
Created December 23, 2019 07:45
Turn on WiFi calling using ADB

Some Android Phones support WiFi calling but there's no option in the UI to turn on this feature. For such phones, you can use one of following techniques

Show WiFI Calling Dialog using ADB

In Setting App

$ am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$WifiCallingSettingsActivity
@extremecoders-re
extremecoders-re / genymotion-headless.md
Last active January 4, 2025 11:23
Run Genymotion on a Headless server

As per the official documentation it's not possible to run Genymotion on a headless server. This is because Genymotion does the UI processing outside the VM on the host. If the host is headless, i.e. doesn't have hardware acceleration, Genymotion won't be able to render the Android OS display. As a result the VM will boot up in VirtualBox but there won't be any display.

(Note that getting a GUI via X11 Forwarding, XRDP, X2Go is not the same as a dedicated display. These are virtual displays. The Genymotion app will start but on booting an Android VM the player window will be blank.)

Quoting from https://stackoverflow.com/a/39448004/1833653

When you start a Genymotion device on the standard way from Genymotion Soft, the Android OS is starting inside a VirtualBox VM but all the UI processing (which uses OpenGL) is done outside the VM to make the rendering pipeline uses your computer's GPU. Using this hardware acceleration makes the Genymotion devices fairly smooth and fast.

When you start the Genymoti

@extremecoders-re
extremecoders-re / ubuntu-remote-use.md
Last active November 24, 2024 19:20
Access Ubuntu Remotely from Windows

Four remote desktop tools tested

Before trying out any of these ensure the system can be accessed remotely over SSH.

/*
Mode switching tool for controlling mode of 'multi-state' USB devices
Version 2.5.2, 2017/12/31
Copyright (C) 2007 - 2017 Josua Dietze (mail to "usb_admin" at the domain
of the home page; or write a personal message through the forum to "Josh".
NO SUPPORT VIA E-MAIL - please use the forum for that)
Major contributions:
@extremecoders-re
extremecoders-re / decrypt-3gmodem.py
Last active November 24, 2024 19:20
Script to decrypt TP-Link 3g modem config file [https://www.tp-link.com/en/support/3g/]
from Crypto.Cipher import DES
import hashlib
modem_key = bytearray(b'\x47\x8d\xa5\x0b\xf9\xe3\xd2\xcf')
ct = open('/workspace/wr902ac/Huawei-K3771.bin','rb').read()
des = DES.new(modem_key, DES.MODE_ECB)
pt = des.decrypt(ct)
assert pt[0:16] == hashlib.md5(pt[16:]).hexdigest().decode('hex')
print pt[16:]
@extremecoders-re
extremecoders-re / hexdump.idc
Created June 26, 2019 09:07
IDC Script to do hexdump
//
// IDC Script to do hexdump
//
auto i;
auto addr = get_inf_attr(INF_MIN_EA);
auto max_addr = get_inf_attr(INF_MAX_EA);
auto ofile = fopen("hexdump.txt", "w");
auto b;
for (addr=0; addr<max_addr; addr=addr+16)