Cool dexor.

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Honest
Seçkin Üye
Katılım
20 Şub 2018
Mesajlar
510
Çözümler
1
Tepki puanı
163
Ödüller
7
Yaş
29
8 HİZMET YILI
Why do you need all these analyzers of possible keys for xorstr if development giants like llama leave keys right along with xored str.
Well, I wrote a cool dexor.


PHP:
//Stuff.
#include <iostream>
#include <string>
#include <vector>


//Legacy.
struct Xored {
//Value - xor str, key - decrypt key.
std::vector <int> values;
int key;
};

//Xorstr's to decrypt.
std::vector <Xored> values = {
   
  Xored { { 0x5D5D554E, 0x3A5E5F56 }, 0x3A }

};

int main() {

  auto dexor = [] (int value, int key, std::string& output) {
     
     for (unsigned int i = 0; i < sizeof (int); i++) {
          //Bit shifting...
          int currentByte = (value >> (8 * i) & 0xFF);
          //Create const char* with dexor value, and append to string. (Small check for non-null byte)
          output.append (currentByte != 0x0 ? new char (currentByte ^ key) : "");
     }
   
  };

  //dexored str.
  std::string output;

  for (const auto& xored : values) {
   
     for (const auto& value : xored.values) {
        dexor (value, xored.key, output);
     }

  }

  //print.
  std::cout << output;

}

Run it all at runtime:
Bağlantıları görmek için lütfen Giriş Yap
(Strictly not recommended for pregnant children)
Think about it, you are still young, you have children, a wife, a father, a stepfather, and so on.
The theme was created exclusively by roflu and at the request of a friend, no more.
 
Üye
Katılım
3 Ağu 2020
Mesajlar
47
Tepki puanı
0
Yaş
27
5 HİZMET YILI
F5 To disable drawings and no longer close my brother
 
Seçkin Üye
Katılım
22 Mar 2019
Mesajlar
371
Tepki puanı
11
Ödüller
7
Yaş
31
7 HİZMET YILI
It is important to write in SOLID form.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst