Giter VIP home page Giter VIP logo

diggy's Introduction

Hi, I'm Somdev

I am a cyber security researcher and programmer.

Do you want to be one too? Check out my advice for learning hacking and programming.

You can support my work with a few bucks, here.

Twitter Follow

diggy's People

Contributors

s0md3v 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

diggy's Issues

Just do not download this crap :)

Hello Raj, actually It was a right time to get my Downloads folder wiped - this miraculous piece of software is good at it, thank you very much Raj. Hopefully I was lazy enough to not move it somewhere and just ran your wiping suite right in Downloads, Raj. Since I had tons of shit in that folder since 3 years ago I wasn't really shocked by the outcome of your script, Raj. Anyways, next time I gonna check the code first, Raj. Thank you again, this was a good lesson, Raj.

Removed all files from the directory

Used it simply on an already decompiled apk and it went to delete all the files from that directory and threw this error -

./diggy.sh: line 29: -4: substring expression < 0
[!] Looks like this apk has been decompiled already.
[?] Decompile over the existing copy? [y/N] y
Decompiling the apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.nio.file.NoSuchFileException: apk/1
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:315)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Caused by: brut.directory.DirectoryException: java.nio.file.NoSuchFileException: apk/1
at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
at brut.directory.ExtFile.getDirectory(ExtFile.java:52)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:313)
... 3 more
Caused by: java.nio.file.NoSuchFileException: apk/1
at sun.nio.fs.UnixException.translateToIOException(java.base@9-internal/UnixException.java:92)
at sun.nio.fs.UnixException.rethrowAsIOException(java.base@9-internal/UnixException.java:111)
at sun.nio.fs.UnixException.rethrowAsIOException(java.base@9-internal/UnixException.java:116)
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(java.base@9-internal/UnixFileAttributeViews.java:55)
at sun.nio.fs.UnixFileSystemProvider.readAttributes(java.base@9-internal/UnixFileSystemProvider.java:145)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(java.base@9-internal/LinuxFileSystemProvider.java:99)
at java.nio.file.Files.readAttributes(java.base@9-internal/Files.java:1738)
at java.util.zip.ZipFile$Source.get(java.base@9-internal/ZipFile.java:924)
at java.util.zip.ZipFile.(java.base@9-internal/ZipFile.java:213)
at java.util.zip.ZipFile.(java.base@9-internal/ZipFile.java:145)
at java.util.zip.ZipFile.(java.base@9-internal/ZipFile.java:159)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:53)
... 6 more
Extracting endpoints
awk: cannot open /home/user/Downloads/.txt (No such file or directory)

Bug on osx

     ___  _
    / _ \(_)__ ____ ___ __
   / // / / _ `/ _ `/ // /
  /____/_/\_, /\_, /\_, /
         /___//___//___/
./diggy.sh: line 28: temp: bad array subscript
./diggy.sh: line 29: -4: substring expression < 0
[!] Looks like this apk has been decompiled already.
[?] Decompile over the existing copy? [Y/n] n
[~] Decompiling the apk
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[~] Extracting endpoints

This error appeared when using diggy command on osx.

False positives

I tried out Diggy on a random application, and I can see that a lot of lines of the result are http://schemas.android.com/* which is not relevant. How would you like a PR for that?

Diggy fails on saving the txt file

srinivasgowa@solancer Diggy % ./diggy.sh /Users/srinivasgowda/Downloads/BOMBitUP_v4.04.1.apk
___ _
/ _ ()__ ____ ___ __
/ // / / _ / _ / // /
/
//_, /_, /_, /
/
////_/

./diggy.sh: line 29: temp: bad array subscript
./diggy.sh: line 30: -4: substring expression < 0
[!] Looks like this apk has been decompiled already.
[?] Decompile over the existing copy? [y/N] N
[] Decompiling the apk
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
at java.nio.file.Paths.get(Paths.java:84)
at java.nio.file.TempFileHelper.(TempFileHelper.java:50)
at java.nio.file.Files.createTempFile(Files.java:897)
at javax.imageio.stream.FileCacheImageInputStream.(FileCacheImageInputStream.java:102)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:69)
at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
at javax.imageio.ImageIO.read(ImageIO.java:1353)
at brut.androlib.res.decoder.Res9patchStreamDecoder.decode(Res9patchStreamDecoder.java:45)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:94)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:258)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:129)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:124)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
Caused by: java.security.PrivilegedActionException: sun.nio.fs.UnixException: No such file or directory
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:96)
at java.nio.file.FileSystems$DefaultFileSystemHolder.(FileSystems.java:90)
... 17 more
Caused by: sun.nio.fs.UnixException: No such file or directory
at sun.nio.fs.UnixNativeDispatcher.getcwd(Native Method)
at sun.nio.fs.UnixFileSystem.(UnixFileSystem.java:67)
at sun.nio.fs.BsdFileSystem.(BsdFileSystem.java:41)
at sun.nio.fs.MacOSXFileSystem.(MacOSXFileSystem.java:44)
at sun.nio.fs.MacOSXFileSystemProvider.newFileSystem(MacOSXFileSystemProvider.java:45)
at sun.nio.fs.MacOSXFileSystemProvider.newFileSystem(MacOSXFileSystemProvider.java:38)
at sun.nio.fs.UnixFileSystemProvider.(UnixFileSystemProvider.java:56)
at sun.nio.fs.BsdFileSystemProvider.(BsdFileSystemProvider.java:36)
at sun.nio.fs.MacOSXFileSystemProvider.(MacOSXFileSystemProvider.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:48)
at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:65)
at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)
at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
... 20 more
[
] Extracting endpoints
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]
awk: can't open file /Users/srinivasgowda/Desktop/Diggy/.txt
source line number 1
[!] Endpoints saved in: /Users/srinivasgowda/Desktop/Diggy/.txt
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
srinivasgowa@solancer Diggy %
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
^Lshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Error

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:286)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:103)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:80)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
at brut.directory.ExtFile.getDirectory(ExtFile.java:52)
at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:284)
... 3 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.zip.ZipFile.(ZipFile.java:163)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:53)

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.