Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MainClass {
- void Main(CaseClass c) {
- SystemClass::ClearConsole(1);
- long offset, size;
- if (EntryClass e = EntryClass::TypeCast(c.GetCurrentItem(offset, size)))
- {
- LogicalEvidenceFileClass lef();
- CredentialClass credsRoot(); // The root object in a list of credentials
- credsRoot.SetEncryptionType(EV2); // This isn't optional
- credsRoot.SetSelected(true);
- CredentialClass key_cred(credsRoot);
- key_cred.SetEncryptionType(EV2);
- key_cred.SetPassword("Password12345");
- EvidenceFileClass ev();
- ev.SetCompression(EvidenceFileClass::COMPRESSBEST); // COMPRESSNONE | COMPRESSBEST | COMPRESSFAST
- ev.SetEncryption(AES_256);
- if (lef.Open("C:\\Test_2.Lx01", LEF2 | DELETEONCLOSEIFEMPTY, ev, credsRoot))
- {
- LogicalEvidenceFileClass::DataClass data();
- data.SetTarget(e, MODEENTRY);
- if (lef.Add(data))
- {
- lef.Close();
- Console.WriteLine("Success");
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment