BishopFox / rmiscout

RMIScout uses wordlist and bruteforce strategies to enumerate Java RMI functions and exploit RMI parameter unmarshalling vulnerabilities
https://labs.bishopfox.com/tech-blog/rmiscout
MIT License
420 stars 60 forks source link

javassist.CannotCompileException: [source error] syntax error near " android.os.IBinder " #7

Closed dinosn closed 3 years ago

dinosn commented 3 years ago

Hi, I'm having the following error reported regardless the option that is selected.

The command that created the error on this case was

rmiscout bruteforce -i lists/prototypes.txt -r void,boolean,long -p String,int -l 1,4 host 1099

Generating Permutations for [void] type... Finished generating and querying 76500 Permutations

[ERROR] Did you forget to remove the interface name from the method name?

Full Stacktrace:

javassist.CannotCompileException: [source error] syntax error near " android.os.IBinder " at javassist.CtNewMethod.make(CtNewMethod.java:79) at javassist.CtNewMethod.make(CtNewMethod.java:45) at com.bishopfox.rmiscout.RMIConnector.generateStubs(RMIConnector.java:197) at com.bishopfox.rmiscout.RMIConnector.(RMIConnector.java:124) at com.bishopfox.rmiscout.RMIScout.process(RMIScout.java:198) at com.bishopfox.rmiscout.RMIScout.main(RMIScout.java:158) Caused by: compile error: syntax error near " android.os.IBinder " at javassist.compiler.Parser.parseField(Parser.java:91) at javassist.compiler.Parser.parseMember1(Parser.java:67) at javassist.compiler.Javac.compile(Javac.java:90) at javassist.CtNewMethod.make(CtNewMethod.java:74) ... 5 more

the-bumble commented 3 years ago

Hey dinosn,

Thank you for the report! The prototypes.txt list contains full method signatures including parameters while methods.txt contains a list of method names. The bruteforce subcommand takes in a list of method names (lists/methods.txt).

I can see how that can be confusing and RMIScout could provide a better error message. I will be sure to add a more detailed error message in the next release. :)

Feel free to reach out if you are still encountering any issues.

Thanks again!

Jake