Skip to content

java.lang.SecurityException: BCV is awesome! Blocking exec: C:\Program Files\Python39\python.exe #332

@leo-stone

Description

@leo-stone

Hi, I don't know but it seems, something within the blocking logic of the security manager is not quite right....
For some reason the call to python get's blocked, which it should not, I suppose...

Bytecode Viewer 2.10.14 [FatJar] - Created by @Konloch
...
Start up took 0 seconds
Opening.. blabla.zip
Opening.. blabla.apk
Allowing exec: python3
0:java.lang.Thread
1:the.bytecode.club.bytecodeviewer.util.SecurityMan
2:java.lang.ProcessBuilder
3:java.lang.ProcessBuilder
4:the.bytecode.club.bytecodeviewer.util.Enjarify
5:the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter
6:the.bytecode.club.bytecodeviewer.resources.importing.ImportResource
7:the.bytecode.club.bytecodeviewer.resources.importing.ImportResource
8:java.lang.Thread
java.lang.SecurityException: BCV is awesome! Blocking exec: C:\Program Files\Python39\python.exe
        at the.bytecode.club.bytecodeviewer.util.SecurityMan.checkExec(SecurityMan.java:155)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1096)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
        at the.bytecode.club.bytecodeviewer.util.Enjarify.apk2Jar(Enjarify.java:61)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:47)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)

Maybe related to #227 ? Because what follows is:

java.io.FileNotFoundException: C:\Users\Jon Doe\.Bytecode-Viewer\bcv_temp\rjOTgWpLTlqpvcnNhqtOXjTlN.jar (Das System kann die angegebene Datei nicht finden)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importZipInputStream(ResourceContainerImporter.java:151)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importAsZip(ResourceContainerImporter.java:74)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:51)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)
java.nio.file.NoSuchFileException: C:\Users\Jon Doe\.Bytecode-Viewer\bcv_temp\rjOTgWpLTlqpvcnNhqtOXjTlN.jar
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:261)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:230)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:213)
        at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:174)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importApacheZipFile(ResourceContainerImporter.java:176)
        at the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter.importAsZip(ResourceContainerImporter.java:81)
        at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:51)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:90)
        at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:62)
        at java.base/java.lang.Thread.run(Thread.java:834)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions