kosborn / p2p-adb Goto Github PK
View Code? Open in Web Editor NEWPhone to Phone Android Debug Bridge - A project for "debugging" phones... from other phones.
License: GNU General Public License v3.0
Phone to Phone Android Debug Bridge - A project for "debugging" phones... from other phones.
License: GNU General Public License v3.0
when i connect my phone to a victim phone and do sh run.sh, everytime I get hit by this error: *_cannot stat 'includes/busybox-static' : permission denied *_error. Does anyone know what this error message means and How to get rid of this error message ?
PLEASE HELP ME! When I try to run "run.sh" on my android I have this error message:
adb is not in your $PATH
add it to your $PATH or enable #tryStaticADB in run.sh
I know that someone had the same problem I but that person moved the p2p-adb-master folder to /data and that worked for him, but when I tried to run it with that folder on /data I had the same old problem. Moreover, I tried to run it in almost all the directories but always I have that problem. Also searched about add adb to $PATH, but I couldnt find something useful. Please help me! I would love to have this framework on my phone.
The commands I have used are:
And the phone that Im using is a Motorola Moto G 1st gen.
HELP ME PLEASE, and thanks in advance
When i go to the p2p-adb-master folder then type "sh run.sh" i get the following error..:
root@s5neolte:/sdcard/kali_tools/adb # sh run.sh
Using:
adb is not in your $PATH
Add it to $PATH, or enable $tryStaticADB in run.sh
root@s5neolte:/sdcard/kali_tools/adb #
Plz help me solve this problem
I'm running a rooted galaxy s5 new
I also tried adding an adb folder i found in /data/adb to path by typing:
export PATH=$PATH:/data/adb
But i still get the same error.
I am not able locate loot/jacked folder and tar file where can I look for files I have stolen from my victim phone
Hi!
It would be good if this tool could use fastboot to boot a twrp or cwm recovery (i prefer twrp but i don't know atm if it has adb server), and then flash a supersu zip package or anything else.
So the features requested:
-fastboot ability
-script to boot twrp
-script to boot twrp and instantly flash root
Anyway, is there a way to give feature requests in an other way then in issues?
I successfully copied everything from my test phone... but I am unable to find the location of the things i ripped.. can you help me out?
Hey, I've jsut downloaded this on my samsung GT-i9100 running Rootbox v3.4 and Dorimanx kernal.
I've copied the folder after extracting to the root of my phone and ran the comman in terminal but I keep getting an error. This is what it looks like:
app_71@android:/ $ su
root@android@/ # sh ./run.sh
sh: can't open './run.sh'
2|root@android:/ #
Anyone help please? :( I'm running latest version of busybox and using terminal emulator
Please help me why it says that ?
Device unauthorized. Please check the confirmation dialog on your device.
I want to add a screenshot but my english isnt very good and im new here. Thanks
So i decided to copy all the script :
u0_a269@jflte:/ $ cd storage/emulated/0/p2p-adb-master
u0_a269@jflte:/storage/emulated/0/p2p-adb-master $
sh run.sh
Using: /system/bin/adb
Welcome to p2p-adb framework!
Let's break some stuff.
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
Trying to push busybox...
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
What do you want to do today?
0) Check if root
1) Steal App data
2) Steal Google data
3) Steal Camera Photos
4) Steal JPGs > 200k
5) Steal Accounts
6) Install/Uninstall AntiGuard
7) Root 4.0-4.1.1 using adb race condition
(Not guaranteed to work on all devices!)
8) Get pattern unlock!
x) Exit
Choose wisely: 3
GRAB DEM PHOTOS
error: device unauthorized. Please check the confirmation dialog on your device.
Camera directory doesn't exist?
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
Trying to push busybox...
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
What do you want to do today?
0) Check if root
1) Steal App data
2) Steal Google data
3) Steal Camera Photos
4) Steal JPGs > 200k
5) Steal Accounts
6) Install/Uninstall AntiGuard
7) Root 4.0-4.1.1 using adb race condition
(Not guaranteed to work on all devices!)
8) Get pattern unlock!
x) Exit
Choose wisely: 0
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
WHAT AM I???
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
Trying to push busybox...
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
What do you want to do today?
0) Check if root
1) Steal App data
2) Steal Google data
3) Steal Camera Photos
4) Steal JPGs > 200k
5) Steal Accounts
6) Install/Uninstall AntiGuard
7) Root 4.0-4.1.1 using adb race condition
(Not guaranteed to work on all devices!)
8) Get pattern unlock!
x) Exit
Choose wisely: 7
Trying to root...
adb: unable to connect for restore
run.sh: ./root4.x.sh[13]: can't create /data/local/tmp//p2p-tmp: Permission denied
error: device unauthorized. Please check the confirmation dialog on your device.
run.sh: ./root4.x.sh[28]: can't create /data/local/tmp//p2p-tmp: Permission denied
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
Trying to push busybox...
error: device unauthorized. Please check the confirmation dialog on your device.
error: device unauthorized. Please check the confirmation dialog on your device.
What do you want to do today?
0) Check if root
1) Steal App data
2) Steal Google data
3) Steal Camera Photos
4) Steal JPGs > 200k
5) Steal Accounts
6) Install/Uninstall AntiGuard
7) Root 4.0-4.1.1 using adb race condition
(Not guaranteed to work on all devices!)
8) Get pattern unlock!
x) Exit
Choose wisely:
When i go to the p2p-adb-master folder then type "sh run.sh" i get the following error..:
root@s5neolte:/sdcard/kali_tools/adb # sh run.sh
Using:
adb is not in your $PATH
Add it to $PATH, or enable $tryStaticADB in run.sh
root@s5neolte:/sdcard/kali_tools/adb #
Plz help me solve this problem
I'm running a rooted galaxy s5 new
.
when I execute sh ./run.sh it loads and says waiting for phone to connect. When I connect a device it loads up the menu. any option I choose errors with device not found. not sure why.. this is a nexus 7 4.2.1.
Hi,
Just tested your tool : awesome !
A little bug came up, just to report it and give you feedback :
Info : HTC Wildfire S CM7
(I found a way to know if someone tried to install the app : the Link2SD log ^^)
Choose wisely: 6
Unlocking Screen
395 KB/s (16580 bytes in 0.040s)
pkg: /data/local/tmp/AntiGuard.apk
Success
Error: Unknown option: -S
usage: am [subcommand] [options]
start an Activity: am start [-D] [-W] <INTENT>
-D: enable debugging
-W: wait for launch to complete
start a Service: am startservice <INTENT>
send a broadcast Intent: am broadcast <INTENT>
start an Instrumentation: am instrument [flags] <COMPONENT>
-r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT)
-e <NAME> <VALUE>: set argument <NAME> to <VALUE>
-p <FILE>: write profiling data to <FILE>
-w: wait for instrumentation to finish before returning
start profiling: am profile <PROCESS> start <FILE>
stop profiling: am profile <PROCESS> stop
start monitoring: am monitor [--gdb <port>]
--gdb: start gdbserv on the given port at crash/ANR
<INTENT> specifications include these flags:
[-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
[-c <CATEGORY> [-c <CATEGORY>] ...]
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--esn <EXTRA_KEY> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[-n <COMPONENT>] [-f <FLAGS>]
[--grant-read-uri-permission] [--grant-write-uri-permission]
[--debug-log-resolution]
[--activity-brought-to-front] [--activity-clear-top]
[--activity-clear-when-task-reset] [--activity-exclude-from-recents]
[--activity-launched-from-history] [--activity-multiple-task]
[--activity-no-animation] [--activity-no-history]
[--activity-no-user-action] [--activity-previous-is-top]
[--activity-reorder-to-front] [--activity-reset-task-if-needed]
[--activity-single-top]
[--receiver-registered-only] [--receiver-replace-pending]
[<URI>]
Starting: null
java.lang.NullPointerException
Hi Kos, hats off to ur efforts really nice project..I have moto g 1st gen with lollipop.. I tried the method as in terminal I typed su then #/sdcard/p2p-adb-master/run.sh but it shows permission denied :( ..plz help..
Add to $PATH or enable $tryStaticADB in run.sh
I have a question, I was trying to work with the P2P-ADB and first issue I have was the alias adb=/home/usr/bin/adb statement, I tried to just uncomment it in the shell and it seemed not to work but when I just typed the command in it took and I was able to run the run.sh and it did connect to the target phone and I was able to run antiguard and get into the phone, then I tried to execute and install a package and the phone went back to lock mode and I could not get back to the target phone, I have power off/on both phones and now when I run the run.sh shell it just says "Waiting for phone to connect..." any ideas on what I should or maybe move all the files under a different directory ?? any help would be great.
First and foremost, Thank you Kos for an awesome idea and bringing it to reality!
I've read all the posts and see that there was an issue where the host couldn't get a connection to the target. I think it was issue 6? Bit it seems i have the same problem and cannot get my devices connected. I may have missed something and hope someone can help.
Problem: Cannot connect to target.
Code:-----------------------------------------------
su
deamon started successfully. now running ... blah blah
Now when i plug in my target, it starts charging, so connected but nothing on my host.... Any help??
My setup: ADB activated on all devices.
Host (HTC One S)
AOKP JB build 1 -- Rooted -- SU
Target: Galaxy Vibrant
Cyanogenmod Android 4.04
Rooted and w/ SU
Ok my problem in up ๐
Third link in readme.md is borked - point it to http://kyleosborn.com/android/AndroidPhySec.pdf ? or rehost on Github?
Thank you for the excellent resource :)
You rock bro!!!
On stock roms the IMG has to be rebuilt to force adb into a default root shell.. I updated functions.sh to
if [ "$(adb shell "su -c 'whoami'" | tr -d '\r' )" = 'uid=0(root) gid=0(root)' ]; then
Works fine.. you also need to either set a variable for adb shell su or just add it to the rest of the functions like
adb shell "su -c 'command1; command2, command3'"
And Google Data on Jelly Bean is now
/data/system/users/0/accounts.db
so maybe an elif for 4.1>
version=$(adb shell getprop |awk -F":" '/build.version.release/ { print $2 }')|tr -d '[]'
this is one of the awesome thing i saw..i watched all your videos from Hak5 from youtube fom whereever i can find this topic of your...
ok I am really noob at this and have no clue what to do or where to get stared
I have samsung s2 and i would like to make use of this p2p-adb..so what should i do ?
like where do i copy all this files ? do i have to root my phone ? do i have to run some custom rom on my phone ?
i got the OTG cable
thanks a lot
when i try to launch it on my xperia x8
CyanogenMod installed
BusyBox installed
Rooted
Android 2.3.7
$ su
version: not found
\033[0;31madb is not in your $PATH
Add it to $PATH, or enabel $tryStaticADB in run.sh \033[om
What does that mean ? What do I have to do ?
hey there i have got root shell, bussybox with root access and when i am in the shell and try to run the script i get a error saying "adb is not in your $path" "add it to path, or enable $tryStaticADB in run.sh
plus i am doing in on a galaxy s3
keep saying besybox is not in your path but besybox is installed on my nexus 5
if you can add this Feature steal account of instagram ??? your script sh very helpful thank you
you are the best
I got it to work perfectly with my Nexus 7 (when I first got it running on my nexus 7 I test it against my Samsung Galaxy S3) Now, I want to get it working on my Galaxy S3, When I transferred the folder to my Galaxy S3 it asked if I wanted to copy "androidmanifest.xml" to my phone, and other .xml files. It also gave me a warning saying I may not be able to read the files if I were to transfer them to the SD card. But, if I transfer it to the internal memory I can see the folders just fine.
Like the title says, when I go to execute run.sh it just hangs at "using: system/bin/adb"
Going to try it on my HTC EVO 4G see if I get the same problem.
Is there any step by step process to use p2p-adb using cygwin? Thanks!
this work in Samsung S4 I9515 android lollipop 5.0.1
thanks brother
I have a phone with cyanogenmod installed and terminal emulator but I am having trouble getting the scripts to work. If I try to chmod the scripts the terminal gives me a "bad mode" error and it doesnt work. If I chmod ahead of time then I copy the files, it is stripped. Help?
Hey guys im running a GS2 skyrocket rooted running cyanogenmod 9 . I tested the framework on my friends phone (who is running a basic rooted phone) , I have two issues. I have everything installed directly to internal sdcard. The first issue I have, is that when I run the command sh run.sh it just sits and nothing happens it says "waiting for device to connect". The second, is when I try to install the Antigaurd.apk using the "adb install Antigaurd.apk" command, its say error: device not found. Am I missing something important.
Thanks for the support guys hope you can help me
How can I download the p2p-adb
Someone help me please
I tested p2p-adb 2 days ago on my Android tablet and it worked fine, but not the functions which requires root. But my tablet is definility rooted: I have CyanogenMod 9.1 stable installed. But instead of SuperUser I use SuperSU - Is this the reason because it won't detect correctly if it is rooted?
Nice work you have done! :)
I am playing with p2p-adb with my phone on my tablet but there's one thing i can't get the hang off;
When choosing the option "get pattern unlock" i am presented by the gesture is:
What does numbers represent and how can i "know" the pattern from them?
Thanks mate!
sir i have the same problem. i am using x8 and rooted installed cygenmod rom prime hd and running andriod 2.3.7.
where and what changes i have to make in run.sh for properly working.
sorry about that the exact problem is look likes as follows
when i try to launch it on my xperia x8
CyanogenMod installed rom prime hd
BusyBox installed
Rooted
Android 2.3.7
$ su
version: not found
\033[0;31madb is not in your $PATH
Add it to $PATH, or enabel $tryStaticADB in run.sh \033[o
the error shows at the launching of the run.sh where i need to make changes in my x8
Please tell me it will work or not. Because i think google might know we can get the token from android mobile so please tell me Now it will work or not . Thanks in advance
keep trying to execute sh -c ./run.sh and keep getting Bash: no such file or directory anybody have any ideas
An install has/supports adb (I believe stock comes with adb, otherwise you could probably add it)
I saw this and does that means I could not use adb on android right now?
I could not find it anywhere.
and file fakebackup.ab in the folder includes?
what is that for?
I've consider about adb on openwrt,but it seems that no body have done it before.
http://myswap.sinaapp.com/wd/openwrtadb
Hey mate,
Installed it as your post etc and i load it up and it keeps saying waiting to connect...
I have tried IOS devices and android but i always get waiting for phone to connect, is there an issue with the s3's ?
Cheers
base64: invalid input while getting google account
When I try to run the adb shell the adb path fails and would appreciate help
*Android version 6.0.1
*OxygenOs 3.2.6
Not sure if google removed the page or something on my end. Can anyone else verify functionality?
When i run sh ./run.sh
it says adb is not in your $Path:
I tried solving it this way -> #36
But when i run find / -name adb
i get this output:
I tried export PATH=$PATH:/path-to-adb-directory-as-discovered-by-find
as it says in the old issue post with the 3 first routes showing on the image above, but when i try again and run sh ./run.sh
i get the same error...
I also tried running from /data/p2p-adb but neither work...
Maybe i dont have adb? I dont know...
help please, i wanna run this framework so bad.
Additional info:
Im using: Nexus 5 with CM13, Android version 6.0.1, I'm using NetHunter and I had BusyBox already installed
so i got as far as putting the folder in the /data and ran
$su
sh: Can't open ./run.sh
/sdcard/p2p-adb-master/run.sh: permission denied
i dont know what to do now.
I rooted my phone. i have busybox. not sure what emulator is best so i have two, but my question is where to copy the file. when i copy the file into the data file i cannot CD to it. i cannot CD to the file even outside of the data file. So what exactly am i missing?
Could i be naming the file something wrong? i named the file p2padb when i inserted into the data file and the error i get is:
"cannot cd to p2padb"
Love you work kos so i just want it to work!!!
Any help is greatly appreciate.
Also im running on gingerbread on a galaxy S aviator if that helps.
Hi Kos and everybody else,
I'm new here and sorry for my bad english :-)
I hava a note 2 international n7100 and new nexus 7 (2. Gen) (2013) and they are running android 4.3 ( note 2 cm 10.2, Rooted,busybox,adb enabled ) ( nexus 7 stock 4.3,rooted,busybox,enabled )
I downloaded this framework from https://github.com/kosborn/p2p-adb/archive/master.zip to my note 2
I extracted it, moved it to my sd card, downloaded terminal emulator cd to the loacation of the files then tiped in su, granted and runned the script
It started the server and stoped at waiting for device to be detected ( i pluged my nexus 7 in via usb otg and nothing )
What should i do?
I have problem in p2p-adb attack after i wrote the code sh run. sh then demon successful. After that the terminal will run. When i choose 6 then stops at waiting device. Still am connected to the target phone. Can you help me
how do you use the framework on windows 7 instead on an android device?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.