Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syscalls #2345

Open
anbu-squad opened this issue Apr 21, 2024 · 5 comments
Open

Syscalls #2345

anbu-squad opened this issue Apr 21, 2024 · 5 comments

Comments

@anbu-squad
Copy link

Screenshot_20

where can I get a 32-bit build to compile?

@UnamSanctam
Copy link
Owner

You need to specify for it to create 32-bit in the command that generates them, and 32-bit isn't tested either so you might need to make some modifications (since I haven't used it for 32-bit yet).

@anbu-squad
Copy link
Author

..\..\..\UFiles\Syscalls/syscalls.c:153:189: error: use of undeclared identifier 'instructValue2'
  153 |                         if (*(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[0].Address + i) == instructValue && *(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[0].Address + i + SWU_OBFCONST(1)) == instructValue2) {
      |                                                                                                                                                                                                                  ^
..\..\..\UFiles\Syscalls/syscalls.c:163:224: error: use of undeclared identifier 'instructValue2'
  163 |                 if (*(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[randNum].Address + syscallOffset) == instructValue && *(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[randNum].Address + syscallOffset + SWU_OBFCONST(1)) == instructValue2)
      |                                                                                                                                                                                                                                              ^
2 errors generated.
..\..\..\UFiles\Syscalls\syscallsstubs.rnd.x86.s:54:9: error: ambiguous operand size for instruction 'pop'
    pop returnAddress                       # Save original return address
        ^~~~~~~~~~~~~
..\..\..\UFiles\Syscalls\syscallsstubs.rnd.x86.s:57:9: error: ambiguous operand size for instruction 'pop'
    pop espBookmark                         # Save original ESP
        ^~~~~~~~~~~

Trying to compile 32 bit build
Mistake in this fragment of code

ifdef _WIN64
    #define instructValue SWU_OBFCONST(0x0F)
	#define instructValue2 SWU_OBFCONST(0x05)
#else
	#define instructOffset SWU_OBFCONST(0x05)
	#define instructValue (callType == SWU_OBFCONST(1) ? SWU_OBFCONST(0x0BA) : SWU_OBFCONST(0x0E8))
#endif
    uint32_t seed = (uint32_t)SWU_SEED + (uintptr_t)&seed + (uint32_t)callCount++;
	
	if (syscallOffset == -1) {
		for(int i = 0; i < SWU_OBFCONST(64); i++) {
			if (*(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[0].Address + i) == instructValue && *(unsigned char*)(ntdllBase + SWU_SyscallList.Entries[0].Address + i + SWU_OBFCONST(1)) == instructValue2) {
				syscallOffset = i;
				break;
			}
		}
	}

What are the differences in versions SysWhispersU and SysWhispers2 ?

@UnamSanctam
Copy link
Owner

UnamSanctam commented May 20, 2024

I have never tried to compile it for 32-bit yet so yes there's likely mistakes. SysWhispersU is almost a complete rewrite (the C code and header parts) of SysWhispers2.

@anbu-squad
Copy link
Author

What files are edited?
artificial intelligence analyzed files syswhispers.py
They are identical

Advantages in obstruction SysWhispersU
maybe I can do 32 bit build

@UnamSanctam
Copy link
Owner

All files are edited, I have to change a lot of things with the Syscalls for every release since new detection techniques get released by antiviruses. Here's the source code for SysWhispersU: SysWhispersU-source.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants