serpentine icon indicating copy to clipboard operation
serpentine copied to clipboard

Crashes during getFile and putFile

Open r3dt3am opened this issue 4 years ago • 2 comments

Hi!!

Congratulations on the gr8 work. I built the client on Visual Studio 2019. Initially was facing linker error ''' Error LNK2001 unresolved external symbol main serpentine C:\Users\Administrator\Desktop\serpentine-master\serpentine-master\client\serpentine\MSVCRT.lib(exe_main.obj) 1 ''' I later changed the Linker -> System -> Subsystem from Console (/SUBSYSTEM:CONSOLE) to Console (/SUBSYSTEM:WINDOWS)

This helped me compile the client and I could see the machine on the server on execution. The reverse shell worked like a charm. But both "getFile" and "putFile" are crashing the client.

** Also is persistence built in by default, how can i switch off persistence?

r3dt3am avatar Jun 28 '20 18:06 r3dt3am

I'm not sure why you had to switch the subsystem, since the project itself already specifies "Windows" as the subsystem. Did you import files manually and not use the provided VS project files?

"putFile" could only crash if the sent data is not valid base64, I will fix this soon. This won't happen if you use a frontend like goserpentine since it properly base64-encodes the file before making the request. When it comes to "getFile" crashes I'm not sure. Could it be that you are not sending the backslashes in the path properly because your shell interprets them as an escape?

There's no way to turn off startup persistence other than by commenting the code that adds the startup entry, it should be in main.cpp.

jafarlihi avatar Jun 29 '20 12:06 jafarlihi

I don't know why but windows 11 doesn't allow any RAT to run

3m09 avatar Sep 30 '23 10:09 3m09