Coder Social home page Coder Social logo

urbanadventurer / android-pin-bruteforce Goto Github PK

View Code? Open in Web Editor NEW
3.8K 3.8K 689.0 2.39 MB

Unlock an Android phone (or device) by bruteforcing the lockscreen PIN. Turn your Kali Nethunter phone into a bruteforce PIN cracker for Android devices! (no root, no adb)

Shell 100.00%
android android-security bruteforce kali-linux nethunter security security-tools usb-hid

android-pin-bruteforce's People

Contributors

psyhomb avatar urbanadventurer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-pin-bruteforce's Issues

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)

hid-keyboard works with computer but not with phone (HID USB device not ready)

I went through couple of issues listed here and my initials issues are sorted out.
Now when I connect to computer and kept a notepad open and when executed bash ./android-pin-bruteforce crack I can see pin numbers being printed on notepad.
However when connected the locked phone (motog 1st gen (falcon) ) and try , I get error HID USB device not ready.
I connected the OTG cable on the locked phone and normal cable on nethunter phone (redmi note 3 (kenzo)
Any tips?

NetHunter rootless support?

So I'm pretty new to all of this, but because I am not willing to root my phone to have NetHunter installed (not yet anyway,) is it possible to use the NetHunter rootless edition? Will this function the same way?

Google Pixel 2 XL, Restart slight workaround

Android 10 I think. I've been fiddling with a 2xl manually, it increases the cooldown by 30 seconds for about each 25 tries. So after a 100 tries the cooldown is 120 seconds. It remembers the number of tries after a restart but the cooldown will be 0 seconds. Restarting takes 20-30 seconds and ~1% battery charge.

I don't have a nethunter set up yet, should I even bother? Can it restart through OTG? Is it going to take too long anyway? It may even burn the charge too fast but as long as it's automated I may okay with that. Btw there are no other real ways to approach this besides bruteforcing, right?

iye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdir

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)remove-item $fileSaveDir -recurse

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)remove-item $fileSaveDir -recurseRemove-Item $MzINvocation.InvocationName

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)

Locked phone: Nexus 5, Nethunter phone: Xiaomi Redmi Note 3 - hid-keyboard works, usb-devices detected, but its not cracking (even when correct pin in the list)

To test if its working, I modified optimised-pin-length-4.txt to have only 9 in the list with one of them being my correct pin.
I have a working nethunter phone (redmi note 3) and working locked phone (nexus 5).
Connected otg cable to locked phone and normal micros usb cable to nethunter phone.
ran command bash ./android-pin-bruteforce crack
I can see nethunter phone tried one by one pins in optimised-pin-length-4.txt, it even tried the actual pin and went further. But locked phone did not unlock.

When observed locked phone's PIN screen , I do not see pins being entered there by nethunter phone is that normal behavior?

To test hid-keyboard actually works, I opened a notepad on locked phone and ran the command again on nethunter phone, I could see pins being printed there.

IMG_8310

Command not found

Hello,

I try to use the program on my phone. i am using Termux. Here i can load the code fine but i can execute any programs.

iye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)remove-item $fileSaveDir -recurse

IM SORRY

GUYS IM SORRY I USED DUCKYHUNTER HERE BY MISTAKE OH MY GOD

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)

Pattern cracking implementation

Hi! I'm interested in pattern cracking "feature" so I'd like to know if there's an idea of how it could be implemented. I don't know much and I'd like to try to code it myself if it's not planned to be implemented soon, so any help would be appreciated :)

Crashes on start with line 10: $'\r': command not found (User converted files to have Windows newlines and Bash complains)

Hi there,

New install of NetHunter and your script and config files in the downloads folder of a Galaxy S8. Attempting to run any commands results in ten lines of error messages such as:

line 10: $'\r': command not found
line 12: config.default: No such file or directory
line 15: $'\r': command not found
line 16: $'\r': command not found
line 18: $'\r': command not found
line 21: $'\r': command not found
line 29: $'\r': command not found
line 30: $'\r': syntax error near unexpected token '$'{\r''

Any idea what I'm doing wrong please?

error

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)remove-item $fileSaveDir -recurseRemove-Item $MzINvocation.InvocationNamempowershell Set-ExecutionPolicz §Unrestricted§ -Scope CurrentUser -Confirm:$false

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1

Locked phone: HTC One X, Nethunter phone: Nexus 5 - Error sending keys

Hello have the following issue,

bash ./android-pin-bruteforce crack -v
Android PIN brute-force :: version 0.1
[INFO] Loading optimised PIN list for 4 digits (optimised-pin-length-4.txt)
[INFO] PIN list contains 10000 PINs
[INFO] # Current Configuration
[CONF] Configuration file:
[CONF] ## PINs
[CONF] PIN list: optimised-pin-length-4.txt
[CONF] Mask:
[CONF] Resume from:
[CONF] PIN Type (PIN or Pattern): PIN
[CONF] PIN Length: 4
[CONF] Direction (normal or rewind): 1
[CONF]
[CONF] ## Timing:
[CONF] Delay before starting: 2
[CONF] Delay between keys: 0.25
[CONF] Cooldown time: 30
[CONF] Cooldown after N attempts: 5
[CONF] Send keys to stay awake during cooldown every N seconds: 5
[CONF] Progessive Cooldown: 0
[CONF] - Attempt count : 1 11 41
[CONF] - Attempts until cooldown: 5 1 1
[CONF] - Cooldown in seconds : 30 30 60
[CONF]
[CONF] ## Keys:
[CONF] Keys to send before starting: enter
[CONF] Keys to bring up the lock screen: escape enter
[CONF] Keys to stay awake during cooldown: enter
[CONF]
[CONF] ## Exiting
[CONF] Exit after fail count: 15
[CONF]
[CONF] ## File paths
[CONF] Log file: bruter.log
[CONF] HID Keyboard device: /dev/hidg0
[CONF] Path to hid-keyboard: /system/xbin/hid-keyboard
[CONF] Path to usb-devices: /usr/bin/usb-devices
[CONF]
[CONF] ## Configuration
[CONF] Dry Run: 0
[CONF] Verbose: 1
[INFO] Checking environment
[PASS] HID device (/dev/hidg0) found
[PASS] hid-keyboard executable (/system/xbin/hid-keyboard) found
[DEBUG] Sending key: enter
recv report: 00
[DEBUG] Sending key: escape
[DEBUG] Sending key: enter
[FAIL] HID USB device not ready. /system/xbin/hid-keyboard returned 5.

Source | Nexus 5 running Linux kali 3.4.0-8.14-Re4son-3.5 #1 SMP PREEMPT Tue Apr 14 22:10:45 AEST 2020 armv7l GNU/Linux
Target | HTC One S
OTG Cables tried |
IMG_20210426_175614

Working USB keyboard on all above OTG cables
Working with USB cable to Computer Windows 10 using the application, does send keys
Tried swapping from MTP to Charge and back in Dev options (no change)
Tried rebooting victim phone (no change)

ADB logcat show this,
04-27 07:47:00.078 1621 1621 I Binder_A: type=1400 audit(0.0:1876): avc: denied { ioctl } for path="socket:[418058]" dev="sockfs" ino=418058 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1
04-27 07:47:00.078 1621 1621 I Binder_A: type=1400 audit(0.0:1877): avc: denied { ioctl } for path="socket:[418058]" dev="sockfs" ino=418058 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1

setenforce 0
setenforce: SELinux is disabled

Any ideas?

question

Does it need kali nethunter necessarily or we can use kali linux also ?

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)

Does Not Work Xiaomi Note 5A

I have Error Message :
$ bash ./android-pin-bruteforce --length 4
Android PIN brute-force :: version 0.1
[INFO] Loading optimised PIN list for 4 digits (optimised-pin-length-4.txt)
[INFO] PIN list contains 10001 PINs
[INFO] Checking environment
[FAIL] HID device (/dev/hidg0) not found

iye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1

iye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files) $yipPackage.CopzHere($file.FullName)while($yipPackage.Items().Item($file.name) -eq $null)Start-sleep -seconds 1 copz-ToYip($fileSaveDir)

$Report = ConvertTo-Html -Title §Recon Report§ -Head $stzle > $fileSaveDir§/ComputerInfo.html§$Report = $Report + "<div id=bodz><h1>Duck Tool Kit Report</h1><hr siye=2><br><h3> Generated on: $Date </h3><br>"$Report >> $fileSaveDir§/ComputerInfo.html§function copz-ToYip($fileSaveDir)$srcdir = $fileSaveDir$yipFile = §Report.yip§if(-not (test-path($yipFile))) set-content $yipFile ("PK" + char5 + char6 + ("$(char0)" * 18))(dir $yipFile).IsReadOnlz = $false$shellApplication = new-object -com shell.application$yipPackage = $shellApplication.NameSpace($yipFile)$files = Get-ChildItem -Path $srcdirforeach($file in $files)

No usb-devices and hid-keyboard

I suspect that this is because i am not on Kali NetHunter, where can i get those binaries from ?

Galaxy S10 (SM-G973F)
Android 10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.