Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h> //макоебы соснули
- int main(int argc, char **argv) {
- srand((unsigned long long int)argv[0]);
- std::ofstream of("zalupa.bin", std::ios::binary);
- for (int blocks = 10; blocks --> 0; ) {
- int len = 100 + rand() % 1000;
- of << 0x5b << 0x5d << (len & 0xFF) << ((len&0xFF00)>>8) << 0x0d << 0x0a;
- char pseudo_random[12];
- of.write(pseudo_random, 12);
- of << (0x08 + (rand() % 2)) << (rand() % 2);
- char pseudo_random[12];
- of.write(pseudo_random, 12);
- int a = htons(rand()), b = htons(rand());
- of << ((a&0xFF000000)>>24);
- of << ((a&0xFF0000)>>16);
- of << ((a&0xFF00)>>8);
- of << ((a&0xFF)>>0);
- // ХУЙ \\
- of << ((b&0xFF)>>0);
- of << ((b&0xFF00)>>8);
- of << ((b&0xFF0000)>>16);
- of << ((b&0xFF000000)>>24);
- char pseudo_random[len - 40];
- of.write(pseudo_random, len - 40);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement