Closed useragent23253 closed 1 year ago
You probably have to set the corresponding classes and functions (program/main) to public before you compile krbrelayup. Maybe have a look at the Rubeus source for reference.
Do u mean all private classes, bools, sets, consts to public in all available files .cs and modules?
No ^^ that would be a bit too much. Just the ones that you need to call for the entrypoint. I haven't looked at krbrelayup but I guess it would be a class called Program and a function called main. Make sure these are public and then try again.
Actually it's not working. I was changing few private classes in program but still getting same error. Did u do it or not?
I just tried it with setting the "Program" class and the "Main" function within said class to public and that seems to do the trick. However, the shell always terminates after executing Invoke-KrbRelayUp, which is likely caused by some part of the original code that I am not aware of. You'd have to work around that yourself.
Hello, is it working with any C#, .Net programs? Because i got nothing with krbrelayup.exe
Invoke-KrbRelayUp Unable to find type [KrbRelayUp.Program]. At line:14 char:18
You cannot call a method on a null-valued expression. At line:15 char:1
PS C:\Users\user> Invoke-KrbRelayUp -command help Unable to find type [KrbRelayUp.Program]. At line:14 char:18
You cannot call a method on a null-valued expression. At line:15 char:1
[*] Action: Calculate Password Hash(es)
[X] /password:X must be supplied!