Advertisement
Guest User

Kelihos Loader IP Decrypter

a guest
Dec 7th, 2015
1,379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. void main()
  2. {
  3.     FILE *f = fopen("IPs.txt", "ab");
  4.  
  5.     for(int ip_offset = 0; ip_offset < sizeof(encrypted_block); ip_offset += 4)
  6.     {
  7.         BYTE encrypted_ip[4];
  8.  
  9.         for(int i = 0; i < 4; i++)
  10.         {
  11.             encrypted_ip[i] = (BYTE)(i-91) ^ encrypted_block[ip_offset+i];
  12.         }
  13.  
  14.         char *ip_address = inet_ntoa(*(in_addr *)&encrypted_ip);
  15.         fwrite(ip_address, strlen(ip_address), 1, f);
  16.         fwrite("\r\n", 2, 1, f);
  17.     }
  18.  
  19.     fclose(f);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement