Skip to content

Instantly share code, notes, and snippets.

View knightfall's full-sized avatar

Sazid Hossain Banna knightfall

View GitHub Profile
@knightfall
knightfall / handlePermission.java
Created November 11, 2018 04:19
Decompiled pathao app 3.2.1 com.pathao.user.p010ui.core.home.view.HomeFragment.java
private void handlePermissionTaks() {
if (!PathaoApplication.getInstance().getPermissionManager().shouldShowPermissionRequest(PermissionManager.CALL_FROM_LANDING)) {
if (PathaoApplication.getInstance().getPermissionManager().hasLocationPermission(getActivity())) {
accessUserLocation();
}
if (PathaoApplication.getInstance().getPermissionManager().hasSMSPermission(getActivity()) || PathaoApplication.getInstance().getPermissionManager().hasContactPermission(getActivity())) {
startSMSContactSync();
}
} else if (PathaoApplication.getInstance().getPermissionManager().hasLocationPermission(getActivity())) {
PathaoApplication.getInstance().getPermissionManager().requestForAllInitialPermission(getActivity());
@knightfall
knightfall / deviceinfo.JSON
Created November 11, 2018 08:06
Intercepted traffic from Pathao app 3.2.1
{
"_method": "PATCH",
"android_id": "2xxxxx",
"app_names": "Speedtest,PUBG MOBILE,Pathao,My Optus,Last Shelter:Survival,Chrome",
"app_version": "3.2.1",
"device_brand": "samsung",
"device_model": "SM-G955N",
"fcm_token": "",
"gcm_token": "xxxxxxxxxxxxxxx",
"os_version": "4.4.2",
{
"_method": "PATCH",
"phonebook": "Zxxx:0191xxxx,Airport Magistrate:+880 1787-661166,Mxxx XXX :+880 1713-2xxxx8, ..... , Name: Number,"
}
{
"_method": "PATCH",
"android_id": "xxxxx",
"app_names": "Pathao,com.android.smoketest,Example Wallpapers,API Demos,com.android.gesture.builder,com.android.smoketest.tests,Sample Soft Keyboard,Widget Preview",
"app_version": "3.2.1",
"device_brand": "Android",
"device_model": "Android SDK built for x86_64",
"fcm_token": "",
"gcm_token": "dccccccccccccc",
"os_version": "7.1.1",
@knightfall
knightfall / SyncDeviceInfoService.java
Created November 12, 2018 10:37
Decompiled Pathao app. Snippet from com.pathao.user.services.SyncDeviceInfoService
protected void onHandleIntent(Intent intent) {
try {
String str = VERSION.RELEASE;
String str2 = BuildConfig.VERSION_NAME;
String string = Secure.getString(getContentResolver(), "android_id");
String str3 = Build.BRAND;
String str4 = Build.MODEL;
Object token = InstanceID.getInstance(this).getToken(getString(C1702R.string.gcm_api_id), "GCM", null);
ArrayList arrayList = (ArrayList) getPackageManager().getInstalledPackages(0);
StringBuilder stringBuilder = new StringBuilder();
@knightfall
knightfall / gist:eb92adfe619470ca3cbd701bedca0339
Created November 12, 2018 10:45
Decompile Pathao app. Snippet from com.pathao.user.p010ui.core.landing.view
private void syncMetaData() {
try {
CommonTasks.startBackgroundService(getApplicationContext(), new Intent(getApplicationContext(), SyncDeviceInfoService.class));
} catch (Throwable e) {
CommonTasks.showLog(e.getMessage());
PathaoApplication.getInstance().getTracker().trackCrash(e);
}
}
private void init() {
{
"_method": "PATCH",
"phonebook": "Pathao:(041) 214-5561",
"sms": "6505551212: Oreo's a slam dunk!(Nov 11, 2018 14:57:18 ) , 6505551212: Oreo's a slam dunk!(Nov 11, 2018 14:57:24 ) , 0412372732: Ki khobor bhai(Nov 11, 2018 14:57:38 ) , Thief: Youuuuuuuuuu(Nov 11, 2018 14:58:30 ) "
}

Keybase proof

I hereby claim:

  • I am knightfall on github.
  • I am knightfall (https://keybase.io/knightfall) on keybase.
  • I have a public key ASDjJMzx_HGFWqP-yBkN6PjMFJ4b0jkWb_yxJR4NdHjEJwo

To claim this, I am signing this object:

@knightfall
knightfall / D3JS Tree Visualizer.md
Last active September 6, 2019 11:56 — forked from adamfeuer/ D3JS Tree Visualizer.md
D3JS Tree Visualizer

d3js Tree Visualizer

This example pulls together various examples of work with trees in D3.js. See the d3js Tree Visualizer live here.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@knightfall
knightfall / knightfall.omp.json
Created December 6, 2020 04:42
Custom oh-my-posh theme
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"properties": {