How to siphon data off static VM
by samis - Wednesday February 12, 2025 at 08:30 PM
#1
This code only supports x86.

Compiled with i686-w64-mingw32-gcc sandbox.c -s -O3
  • Wine on i7-1165G7 (all cores enabled): 0.26
  • Wine on i7-1165G7 (all cores except 1 parked): 0.24
  • Native Windows 10 on Pentium Gold 4425Y: 4.19
  • Native Windows 10 on Intel i5-5200U: 0.35
  • Windows 7 on KVM (1 core): 9.07
  • Windows 7 on KVM (8 cores): 9.89
  • Triage Windows 7: 6.59
  • any.run Windows 7: 48.79
  • Triage Windows 10 1703: 6.09
  • Triage Windows 10 2004: 7.23
  • VirusTotal Microsoft Sysinternals: 30.91
  • VirusTotal Jujubox: 157.27
  • VirusTotal Zenbox: 6.13
Benchmark of 5 is perfect to avoid all of them.

C:

#include <windows.h>
#include <stdio.h>
#include <math.h>
#define THRESHOLD 5.0
#define ITERATIONS 1000000
int notdone, c;
DWORD WINAPI fp(void* data) {
    while(notdone){
        for(int i=0;i<10;i++) asm(".byte 0xd9\n\t.byte 0xf9"); //FYL2XP1
        c++;
    }
    return 0;
}

int main(){
    notdone=1;
    c=0;
    HANDLE thread = CreateThread(NULL, 0, fp, NULL, 0, NULL);
    for(int i=0;i<ITERATIONS;i++) asm("push %eax\n\tpush %ebx\n\tpush %ecx\n\tpush %edx\n\txor %eax, %eax\n\t.byte 0x0f\n\t.byte 0xa2\n\tpop %edx\n\tpop %ecx\n\tpop %ebx\n\tpop %eax"); //CPUID
    notdone=0;
    WaitForSingleObject(thread, INFINITE);
    c*=10;
    double ration = ((double)c)/((double)ITERATIONS);
    printf("c=%d, ratio=%f\n", c, ration);
    if(ration > THRESHOLD) printf("SANDBOX DETECTED!!!\n");
    double fscore = ((tanh(ration-THRESHOLD)+1)/2)*100;
    printf("%f%% confident sandbox\n", fscore);
    return 0;
}
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Forums and Telegrams channels Databases leak sites j4c1nt0 3,098 192,064 9 minutes ago
Last Post: SliceTake76
  How To Hack WhatsApp Of Your Friend By Sending A Single Link HackingRealm 2,660 173,870 2 hours ago
Last Post: dataleakwow
  [TUTORIAL] how to ban Instagram Accounts Piplup 2,146 136,497 2 hours ago
Last Post: dataleakwow
  (Leaked Video Courses) Hacking Wireless Networks | Detailed & Beginner-Friendly Chapo 22 730 2 hours ago
Last Post: Breacher_Lokidas
  How to make money with hacking ssrf 1,246 81,508 2 hours ago
Last Post: cryptosun

Forum Jump:


 Users browsing this forum: 1 Guest(s)