alephsecurity / abootool Goto Github PK
View Code? Open in Web Editor NEWSimple tool to dynamically discover hidden fastboot OEM commands based on static knowledge
License: MIT License
Simple tool to dynamically discover hidden fastboot OEM commands based on static knowledge
License: MIT License
M2Crypto no longer usable.
use py-cryptography instead.
IOError: [Errno 2] No such file or directory: u'/root/.android/adbkey.pub'
Some OEMs like vivo modify their bootloader to use fastboot bbk with fastboot oem.
Both work for different purposes.
I'd a vivo device for which I'd to modify the fastboot.c to get "fastboot bbk" support.
Please add feature to bruteforce these kinda of tricky commands.
My device was unlocked using following commands:
fastboot bbk unlock_vivo
fastboot vivo_bsp unlock_vivo
Hello,
I managed to install all the dependencies and setup the environment to make it work the solution but I'm getting an error in the script after detecting the device in fastboot:
./abootool.py INFO: Welcome to abootool by Aleph Research, HCL technologies INFO: Waiting for device... INFO: fastboot connected to 1PASH9AYPU9241 Traceback (most recent call last): File "./abootool.py", line 95, in <module> sys.exit(main()) File "./abootool.py", line 73, in main name = dev.device() File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 271, in device return Config.bootloader_names[self.bootloader_name()] File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 259, in bootloader_name p = self.product() File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 247, in product return self.getvar("product") File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 240, in getvar self.data[k] = self.wait_for_fb_command("Getvar", False, False, k) File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 188, in wait_for_fb_command self.resolve_fb_error() File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 303, in resolve_fb_error self.fb_error = self.do_fb_command("Oem", True, Config.oem_error_cmd) File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 157, in do_fb_command getattr(self.fastboot(), func)(info_cb=self.last_output, *args, **kargs) File "/Users/ymarquesdemello/Desktop/testingOEM/abootool/device.py", line 139, in fastboot return fastboot.FastbootCommands(self.usbdev) TypeError: __init__() takes exactly 1 argument (2 given)
I'm running Python 2.7.16.
Is anyone else experience this issue as well?
Hello, I get the message
Error : TV display id invalid, will send event to default displayId
when sending the command :
adb shell input swipe 245 893 846 893
This is annoying because there is a delay before the command, and I have to chain 4 swipe commands.
Any idea how to remove this ?
I'm working with adb on windows, and I've installed the latest version of platform-tools :
Android Debug Bridge version 1.0.40
Version 4986621
Thanks
Traceback (most recent call last):
File "abootool.py", line 7, in
import device
File "/home/ben/Desktop/exploitz/abootool/device.py", line 225
except FastbootRemoteFailure, e:
^
SyntaxError: invalid syntax
./abootool.py -h
Traceback (most recent call last):
File "./abootool.py", line 7, in
import device
File "/Users/harry/Downloads/abootool-master/device.py", line 8, in
from adb import fastboot,common,usb_exceptions,adb_commands, sign_m2crypto
ImportError: No module named adb
What am i missing here?
not sure what is wrong???
any help will be apreciated
"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"
return adb_commands.AdbCommands.ConnectDevice(self.usbdev,rsa_keys=[signer])
TypeError: unbound method ConnectDevice() must be called with AdbCommands instance as first argument (got UsbHandle instance instead)
Hey alephsecurity,
Do you plan to do anything with users claims or you really do not give it a s... ?
Have all dependencies installed. Can load a factory image with .adbtool.py -a "path/to/fw.zip"
Afterwards, using "-l" shows:
INFO: Welcome to abootool by Aleph Research, HCL technologies
INFO: BY OEM:
INFO: -------
INFO: motorola: 2
INFO:
INFO: BY DEVICE:
INFO: ----------
INFO: SHAMU: 1 harpia: 1
Now, when I run ./abootool.py alone after loading firmware, i get:
INFO: Welcome to abootool by Aleph Research, HCL technologies
INFO: fastboot connected to ZX1G22K2HQ
Traceback (most recent call last):
File "./abootool.py", line 95, in
sys.exit(main())
File "./abootool.py", line 73, in main
name = dev.device()
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 271, in device
return Config.bootloader_names[self.bootloader_name()]
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 259, in bootloader_name
p = self.product()
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 247, in product
return self.getvar("product")
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 240, in getvar
self.data[k] = self.wait_for_fb_command("Getvar", False, False, k)
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 188, in wait_for_fb_command
self.resolve_fb_error()
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 303, in resolve_fb_error
self.fb_error = self.do_fb_command("Oem", True, Config.oem_error_cmd)
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 157, in do_fb_command
getattr(self.fastboot(), func)(info_cb=self.last_output, *args, **kargs)
File "/media/kevin/Projects/LG Stuff/abootool/device.py", line 139, in fastboot
return fastboot.FastbootCommands(self.usbdev)
TypeError: init() takes exactly 1 argument (2 given)
Have looked through the code, but cannot figure out what's failling.. init in device.py??
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.