Compiling Issue
The attached code has some compilation issues.
Compile for release on x86 and it will just work
@maliciouspentester @chppppp You can get it to compile for x64, does take a bit of work as you have to adjust how things are linked and add a new target for one of the projects, but its possible to do this. If @itm4n is okay with it, I'm happy to make a PR that adds support for compiling for x64 machines.
Hi @chppppp
Compile for release on x86 and it will just work ? you test it ? i try to run exploit i get this error :
BitsArbitraryFileMoveExploit.exe
[+]Building TypeLib:C:\Inetpub\vhosts\hometools\httpdocs\upload_file\SysFxUI.dll
[+]Typelib:script:C:\Inetpub\vhosts\hometools\httpdocs\upload_file\run.sct,IMyPageFactory,{87D5F036-FAC3-4390-A1E8-DFA8A62C09E7}
[+]Copy Back File Failed
[!] The directory 'C:\Windows\TEMP\workspace' already exists.
[-] CreateDirectory('C:\Windows\TEMP\workspace\mountpoint') failed (Err: 183).
[-] BitsArbitraryFileMove::PrepareWorkspace() failed.
[*] Performing clean-up...
[!] RemoveDirectory('C:\Windows\TEMP\workspace') failed (Err: 145).
if you compile it what is your compiler program name ?
Visual Studio
@chppppp i use 2019 but it give me an error which file that i will add to visual studio ?
there is a many folders which folder that i download in order to put in visual studio ? thank you in advanced
C\users\g0ld.man\Repos\BitsArbitraryFileMove\Release\BitsArbitraryFileMove.lib in not valid Win32 application
since i actively punish my brain cells on a daily basis i dont really remember doing anything fancy. just compile for release on x86 and it should work. if it doesnt then idk =[
also, why are you trying to execute a .lib file? look for an exe.