UnamSanctam / UnamBinder

A Free Silent (Hidden) Open-Source Native Binder - Includes Windows Defender Bypass - Unam Binder
MIT License
237 stars 47 forks source link

error message. #40

Closed shainodev closed 2 years ago

shainodev commented 2 years ago

I'm curious why do you use powershell to display the error message instead of using MessageBox() in c or MessageBox.Show() in c#

UnamSanctam commented 2 years ago

Because if the functions are used then program can't exit before the MessageBox is exited, and doing it with powershell is agnostic between C and C# and also prevents any possible encoding issues.

shainodev commented 2 years ago

Because if the functions are used then program can't exit before the MessageBox is exited, and doing it with powershell is agnostic between C and C# and also prevents any possible encoding issues.

what about using threads?

UnamSanctam commented 2 years ago

Wouldn't really make a difference, the program still wouldn't exit before the MessageBox is closed.

shainodev commented 2 years ago

Wouldn't really make a difference, the program still wouldn't exit before the MessageBox is closed.

why would it need to exit? also why dont u use the r replacing thing in the c one

shainodev commented 2 years ago

and is it possible to edit the binders drop location from whatever to program files\folder\binded.exe?

UnamSanctam commented 2 years ago

why would it need to exit? also why dont u use the r replacing thing in the c one

Because it would be preferable for the program to exit, since then the responsible program can't be found easily in the Task Manager or any other place, essentially there is no real downsides of using powershell for the error message but only upsides. The C program doesn't need to obfuscate variables since it gets compiled to native code so variable names don't make a difference compared to C# which is a managed assembly.

and is it possible to edit the binders drop location from whatever to program files\folder\binded.exe?

Sure you can add ProgramFiles to it really easily, the reason it isn't there by default is because you need administrator rights to write to ProgramFiles, and some people would use ProgramFiles and forget to run as administrator.

shainodev commented 2 years ago

Sure you can add ProgramFiles to it really easily, the reason it isn't there by default is because you need administrator rights to write to ProgramFiles, and some people would use ProgramFiles and forget to run as administrator.

but theres systemroot?, how do i add it idk how it works

UnamSanctam commented 2 years ago

but theres systemroot?, how do i add it idk how it works

Yes there's SystemRoot but hopefully people understand that it requires administrator, the name sounds like it at least, ProgramFiles is less obvious. All you need to do to add ProgramFiles is to just add ProgramFiles into the ComboBox, it uses environmental variables and ProgramFiles is one.

would this work and then put the stringarray one as ProgramFiles(x86), would it then be in C:\Program Files (x86)\NVIDIA Corporation\binded.exe?

There's no need to put NVIDIA Corporation inside the code, you can just put it in the builder instead.

UnamSanctam commented 2 years ago

You need to move this line: https://github.com/UnamSanctam/UnamBinder/blob/b79b6f3eb56bd417e089da35393efa4396f31163/UnamBinder/Forms/Builder.cs#L75 Into the for loop just beneath it if you haven't already.

shainodev commented 2 years ago

You need to move this line:

https://github.com/UnamSanctam/UnamBinder/blob/b79b6f3eb56bd417e089da35393efa4396f31163/UnamBinder/Forms/Builder.cs#L75

Into the for loop just beneath it if you haven't already.

what, where?

UnamSanctam commented 2 years ago

what, where?

I linked the line in the file, move line 75 in Builder.cs to line 81.

could i put \NVIDIA Corporation\binded.exe in the filename to do that?

NVIDIA Corporation\binded.exe should be enough.

UnamSanctam commented 2 years ago

What's wrong there? But why are you doing that with sprintf above? Why not do it in the builder instead?

shainodev commented 2 years ago

What's wrong there? But why are you doing that with sprintf above? Why not do it in the builder instead?

if it doesnt have write permissions there would it not give an error?, yeah i already changed it since i realized i cant drop the real app there aswell, and also should i make my stealer delete itself?

UnamSanctam commented 2 years ago

Yes the function would return an error if it can't open the file. You can make it delete itself if you want to, it has its upsides and downsides.

shainodev commented 2 years ago

Yes the function would return an error if it can't open the file. You can make it delete itself if you want to, it has its upsides and downsides.

or should i not make it delete itself so the binder doesnt have to drop it everytime the person uses it. what do i do when it doesnt have access cause the person has the directory open or something?

UnamSanctam commented 2 years ago

The binder would drop it anyways so it wouldn't matter, you can still write to the folder even if they have it open.

shainodev commented 2 years ago

thank you for the help!