Friday, February 17, 2017

Injecting settings on PSIPHONE Handler tutorial

How to use APK tool for Injecting settings on Psiphon Handler







What you need:



PSIPHONE WITH HANDLER (any version will do)


Instructions:

1.Extract apktool to your desktop
1.a There will be a series of folders inside apktool:
1-BDFreak
2-In
3-Out
4-Done
Advance ApkTool

2.Place the Application to the 2-In Folder (note that you need to rename or make a one name for your app to be detected by apktool)

3.Run Advance ApkTool(Figure3)
3.a press 2 and Enter
3.b Select what application you need to decompile
3.c a new instruction will pop up and ask you to input y to proceed decompiling the app.
3.d after successful decompiling finishes press any key to continue..

4.Open the 3-Out Folder and you will see the decompiled app.(Figure4)
4.a at the upper right corner of the screen search for a.smali file and open it with notepad++

5.Once the a.smali is opened at the notepad we will be editing the following lines to inject our settings..

Line 101: const-string v1, "0" Change the "0" to "1" if you want the handler to be shown whenever you start app or "0" to just start the app without looking at your handler settings.


Line 109: const-string v1, "Smart & TNT" this is where you will input The Preference Name of your connection

Line 113: const-string v1, "162.243.173.189" This is where you will input the Front Query

Line 119: const-string v2, "" This is where you will input the Middle Query (leave the "" blank if you dont want to input anything)

Line 123: const-string v1, "198.211.126.137" This is where you will input the Back Query

Line 129: const-string v2, "107.170.86.41" this is where you will input the Filter

Line 135: const-string v2, "3128" This is where you will input Add port to Non-port URL

Line 141: const-string v2, "1" Input "0" if you don't want to remove port

Line const-string v2, "5" This will be the Proxy type...Choose from 0 to 6

Proxy Type:
0.No Proxy
1.HTTP
2.Host
3.Real Host
4.Reverse Proxy
5.Dual Real Host
6.Custom Header


Line 153:const-string v2, "X-Forwarded-For:v.smartads.com.ph" This is where you will input your Custom Header


Line 159: const-string v2, "clubzed.ph" This is where you will input your Proxy Server

Line 165: const-string v2, "Niecolo" This is where you will input your UserName

Line 171: const-string v2, "ZyberPH" This is where you will input your Password


Line 177: const-string v2, "3" This is where you will input your Real Proxy Type...Choose from 0 to 5

Real Proxy Type:
0.Default
1.No Proxy
2.HTTP
3.SOCKS
4.Direct
5.Inject

Line 183: const-string v2, "221.226.138.54" This is where you will input your Real Proxy Server

Line 189: const-string v2, "1080" This is where you will input your Real Proxy Port

Line 195: const-string v2, "0" input "1" if you want to activate child lock code for the handler

Line 201: const-string v2, "ZyberPh" This is where you will Input the Child Lock Code in case you activate it.


6.Save the File(Figure 6)


7.Open again the apktool Select 3 to recompile the application.(Figure 7)
7a.Select the File to Recompile
7b.Select "4" to Recompile,Sign and Then Zipalign the Desired app.
7c.press y to continue recompiling the app.
7d. an new pop up window will open a progress of recompiling the apk.. just wait till it finishes successfully

8.you can now close the apktool and go to 4-Done Folder to See the Injected Application.
8a.Just Install the application and view the Injected settings that you input.



Credits to: Niecolo of ZyberPH

5 comments:

  1. Thanks Claymore Tricks. I have been looking for this kind of information. Keep up the good work.

    One question here, I have decompiled Psiphon 86 Handler. The issue I have is there are 45 a.smali files. What is the exact file location of the right a.smali file I need to change?

    Thanks again!

    ReplyDelete
  2. Thanks!!
    Decompiled psiphon 86 Handler. Found 45 a.smali files. which folder do I find the right a.smali file?

    ReplyDelete
    Replies
    1. 45? o.O thats weird. but either way choose the biggest file size. or kindly screenshot the 45 a.smali files and post it here or link for the pic and we will sort it out

      Delete