Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化数据库错误 #30

Open
secxue opened this issue Mar 18, 2023 · 8 comments
Open

初始化数据库错误 #30

secxue opened this issue Mar 18, 2023 · 8 comments

Comments

@secxue
Copy link

secxue commented Mar 18, 2023

python3 main.py -t ***.jar -c

decoding e.jar...
Command '/Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home/bin/java -jar lib/jd-cli.jar --outputDir out/decode/xboot-module.jar /
.jar' timed out after 240 seconds
Traceback (most recent call last):
File "/Users/
/Security/Web/CodeQLpy/main.py", line 75, in
createDB(parse_args.target, parse_args.compiled, version, parse_args.jar, parse_args.root)
File "/Users/
/Security/Web/CodeQLpy/compiler/database.py", line 408, in createDB
return createJar(source, compiled, version)
File "/Users//Security/Web/CodeQLpy/compiler/database.py", line 46, in createJar
copyJavaFile(java_file, os.path.join(qlConfig("decode_savedir"), "classes"))
File "/Users/
/Security/Web/CodeQLpy/utils/functions.py", line 77, in copyJavaFile
with open(srcpath, 'rb') as r:
IsADirectoryError: [Errno 21] Is a directory: 'out/decode/**.jar/META-INF/maven/com.github.spullara.mustache.java'

image

@mssky9527
Copy link

雪子,什么时候搞起代审了

@secxue
Copy link
Author

secxue commented Mar 19, 2023

我日 how are you?
日站遇到的二开系统啊 不想手动看 呜呜

@webraybtl
Copy link
Owner

.jar”这种是不对的,应该是“seenyon..jar”这种,要能正则匹配到的。尽量不要用“.*.jar”,引入其他第三方的jar会出现错误

@webraybtl
Copy link
Owner

星号打不出来,你自己在在线正则里面要能匹配上

@secxue
Copy link
Author

secxue commented Mar 20, 2023

我这里的* 只是提issue里 待指jar包的名
其实有名字的
比如test.jar
但是我用你说的..jar还是不行啊

python3 main.py -t /Users/test/Downloads/test-3.3.4/test-test/out/artifacts/test/test..jar -c
Welcome to
_______________.___. _________            .___     ________  .____
\______   \__  |   | \_   ___ \  ____   __| _/____ \_____  \ |    |
 |     ___//   |   | /    \  \/ /  _ \ / __ |/ __ \ /  / \  \|    |
 |    |    \____   | \     \___(  <_> ) /_/ \  ___//   \_/.  \    |___
 |____|    / ______|  \______  /\____/\____ |\___  >_____\ \_/_______            \/                \/            \/    \/       \__>       \/

2023/03/20 10:21:42 functions.py WARNING
2023/03/20 10:21:43 functions.py WARNING
2023/03/20 10:21:43 check.py ERROR Target is not exists
 Target Error

image

如果是test.jar这种 就是这个issue里 一开始的样子

@webraybtl
Copy link
Owner

大佬,你打码太多,我看不出来了。从这个报错来看,是你的target不存在,或者不是一个正常的目标

@secxue
Copy link
Author

secxue commented Mar 20, 2023

我打码的就是jar包的路径,按您说的..jar 两个点号 就是不行的,
用一个. 比如test.jar 就是一开始的那个错误
一开始那个我用或者打码的 是具体的jar包名,因为jar包名不大方便放出 所以我用的代替的文本 图中打码的
实际上是有这个target的
最后的错误就是那个

IsADirectoryError: [Errno 21] Is a directory: 'out/decode/test.jar/META-INF/maven/com.github.spullara.mustache.java'

@mssky9527
Copy link

你这是jar反编译吗,如果是springboot打包的jar包应该没问题,直接打包的把jar包解压后加一个WEB-INF/web.xml文件,可以直接去其他项目里面拷,然后在加上需要反编译的依赖里面的jar包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants