Giter VIP home page Giter VIP logo

Comments (21)

Ch3nYe avatar Ch3nYe commented on May 20, 2024 2

try update comm = "%s" % (" ".join(quote(arg) for arg in args)) to comm = "%s" % (" ".join(arg for arg in args)) in apkleaks/apkleaks.py line 96. It works on windows.
this error may cause by command error.

from apkleaks.

dwisiswant0 avatar dwisiswant0 commented on May 20, 2024

Again, thank you so much for reporting this, @masteradit! Can you confirm whether it's still reproduced on hotfix PR #41 (v2.3.2)?

from apkleaks.

masteradit avatar masteradit commented on May 20, 2024

Hey @dwisiswant0! I am still getting the same error on v2.3.2. Should I create another issue?

Also, a small unrelated bug: the ASCII art (I am not sure what it is called), still shows v2.3.0. I tried to figure out how to fix this, but I am not a very advanced Python user, so I could not figure it out. Maybe it is related to the header() function in cli.py file from line 12 to 17. Let me know if I should make a separate issue for this too.

Thank you for your quick responses!

from apkleaks.

dwisiswant0 avatar dwisiswant0 commented on May 20, 2024

Did you install with setup.py build?

from apkleaks.

masteradit avatar masteradit commented on May 20, 2024

Thank you! Running python .\setup.py build updated the version to 2.3.2.

But python .\apkleaks.py -f <path-to-apk>\app-armeabi-v7a-release.apk is still giving the same error.

from apkleaks.

dwisiswant0 avatar dwisiswant0 commented on May 20, 2024

Thank you! Running python .\setup.py build updated the version to 2.3.2.

But python .\apkleaks.py -f <path-to-apk>\app-armeabi-v7a-release.apk is still giving the same error.

It still prompted PermissionError: [WinError 32]?

from apkleaks.

masteradit avatar masteradit commented on May 20, 2024

It still prompted PermissionError: [WinError 32]?

Yes, here's the complete output:

     _    ____  _  ___               _
    / \  |  _ \| |/ / |    ___  __ _| | _____
   / _ \ | |_) | ' /| |   / _ \/ _` | |/ / __|
  / ___ \|  __/| . \| |__|  __/ (_| |   <\__ \
 /_/   \_\_|   |_|\_\_____\___|\__,_|_|\_\___/
 v2.3.2
 --
 Scanning APK file for URIs, endpoints & secrets
 (c) 2020-2021, dwisiswant0

** Decompiling APK...
The filename, directory name, or volume label syntax is incorrect.

** Scanning against 'com.com.<package-name>'
Traceback (most recent call last):
  File "apkleaks.py", line 5, in <module>
    main()
  File "C:\Users\username\Documents\apkleaks\apkleaks\cli.py", line 38, in main
    init.cleanup()
  File "C:\Users\username\Documents\apkleaks\apkleaks\apkleaks.py", line 145, in cleanup
    os.remove(self.output)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\username\\AppData\\Local\\Temp\\apkleaks-va_bn39s.txt'

from apkleaks.

terminatordoink avatar terminatordoink commented on May 20, 2024

Same here, having the same error after following the steps above

from apkleaks.

Linusten avatar Linusten commented on May 20, 2024

Same here, installed also via setup.py

`←[0m←[94m** Decompiling APK...
←[0mDie Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.

** Scanning against ''
Traceback (most recent call last):
File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks.py", line 5, in
main()
File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\cli.py", line 38, in main
init.cleanup()
File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\apkleaks.py", line 145, in cleanup
os.remove(self.output)
PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\Users\P\AppData\Local\Temp\apkleaks-ewc_6o52.txt'

C:\Users\P\Downloads\apkleaks-master\apkleaks-master>`

from apkleaks.

Linusten avatar Linusten commented on May 20, 2024
`←[0m
←[93mIt's not a valid file!
←[0mTraceback (most recent call last):
  File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\cli.py", line 34, in main
    init.integrity()
  File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\apkleaks.py", line 87, in integrity
    sys.exit(util.writeln("It's not a valid file!", col.WARNING))
SystemExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks.py", line 5, in <module>
    main()
  File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\cli.py", line 38, in main
    init.cleanup()
  File "C:\Users\P\Downloads\apkleaks-master\apkleaks-master\apkleaks\apkleaks.py", line 145, in cleanup
    os.remove(self.output)
PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\Users\\P\\AppData\\Local\\Temp\\apkleaks-mbqw8ja1.txt'

` Does not work with this fix...

from apkleaks.

masteradit avatar masteradit commented on May 20, 2024

try update comm = "%s" % (" ".join(quote(arg) for arg in args)) to comm = "%s" % (" ".join(arg for arg in args)) in apkleaks/apkleaks.py line 96. It works on windows.
this error may cause by command error.

Thank you @Ch3nYe! It fixed it! Please make a pull request.

from apkleaks.

ravirajdarisi avatar ravirajdarisi commented on May 20, 2024

I am facing the same problem,I am using windows 10 machine with python 3.8 and apk leaks version 2.3.2
/ \ | _ | |/ / | ___ __ | | _____
/ _ \ | |
) | ' /| | / _ / ` | |/ / __|
/ ___ | /| . | || __/ (
| | <__
// __| ||______|_,||____/
v2.3.2

Scanning APK file for URIs, endpoints & secrets
(c) 2020-2021, dwisiswant0
�[0m
�[94m** Decompiling APK...
�[0mThe filename, directory name, or volume label syntax is incorrect.

** Scanning against 'com.symbol.datawedge'
Traceback (most recent call last):
File "C:\Python38\Scripts\apkleaks-script.py", line 11, in
load_entry_point('apkleaks==2.3.2', 'console_scripts', 'apkleaks')()
File "c:\python38\lib\site-packages\apkleaks\cli.py", line 38, in main
init.cleanup()
File "c:\python38\lib\site-packages\apkleaks\apkleaks.py", line 145, in cleanup
os.remove(self.output)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\pkbh43\AppData\Local\Temp\apkleaks-bw0e4h_x.txt'

from apkleaks.

bomask avatar bomask commented on May 20, 2024

my pc is Win10 - 64bit
python V3.8.5

F:\apk\apkleaks>python apkleaks.py   -f   home.apk
�[95m     _    ____  _  ___               _
    / \  |  _ \| |/ / |    ___  __ _| | _____
   / _ \ | |_) | ' /| |   / _ \/ _` | |/ / __|
  / ___ \|  __/| . \| |__|  __/ (_| |   <\__ \
 /_/   \_\_|   |_|\_\_____\___|\__,_|_|\_\___/
 v2.3.2
 --
 Scanning APK file for URIs, endpoints & secrets
 (c) 2020-2021, dwisiswant0
�[0m
�[94m** Decompiling APK...
�[0m
** Scanning against 'com.ludashi.benchmark'
Traceback (most recent call last):
  File "apkleaks.py", line 5, in <module>
    main()
  File "F:\apk\apkleaks\apkleaks\cli.py", line 38, in main
    init.cleanup()
  File "F:\apk\apkleaks\apkleaks\apkleaks.py", line 145, in cleanup
    os.remove(self.output)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\\Users\\yangb-i\\AppData\\Local\\Temp\\apkleaks-2_uh685h.txt'

from apkleaks.

dwisiswant0 avatar dwisiswant0 commented on May 20, 2024

Just want to let you know that PR (#45) doesn't fix this issue, @Ch3nYe.

Lemme know if anyone here can solve this problem, feel free to open PR.

from apkleaks.

Kaaveh avatar Kaaveh commented on May 20, 2024

Just want to let you know that PR (#45) doesn't fix this issue, @Ch3nYe.

Lemme know if anyone here can solve this problem, feel free to open PR.

I'll do it.

from apkleaks.

w1th0ut avatar w1th0ut commented on May 20, 2024

try update comm = "%s" % (" ".join(quote(arg) for arg in args)) to comm = "%s" % (" ".join(arg for arg in args)) in apkleaks/apkleaks.py line 96. It works on windows.
this error may cause by command error.

Hello,
any update about this? I tried this but still got this error PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\AppData\\Local\\Temp\\apkleaks-0qts4nn7.txt'.
win 10
python 3.8.1

from apkleaks.

w1th0ut avatar w1th0ut commented on May 20, 2024

try update comm = "%s" % (" ".join(quote(arg) for arg in args)) to comm = "%s" % (" ".join(arg for arg in args)) in apkleaks/apkleaks.py line 96. It works on windows.
this error may cause by command error.

Hello,
any update about this? I tried this but still got this error PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\AppData\\Local\\Temp\\apkleaks-0qts4nn7.txt'.
win 10
python 3.8.1

Solved by this PR #45 😄

from apkleaks.

weujieytt avatar weujieytt commented on May 20, 2024

same bug
image

from apkleaks.

w1th0ut avatar w1th0ut commented on May 20, 2024

@weujieytt some apk works, and some error like that, idk why.

from apkleaks.

weujieytt avatar weujieytt commented on May 20, 2024

@w1th0ut no problem with linux

from apkleaks.

dwisiswant0 avatar dwisiswant0 commented on May 20, 2024

Hi, everyone! Please check the latest version (v2.5.2) for this workaround.

Thanks!

from apkleaks.

Related Issues (20)

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.