Guest User

Untitled

a guest
Apr 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.41 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. open my $fh, 'unbase64.txt'
  7.   or die $!;
  8.  
  9. my (@ebx, @ecx);
  10.  
  11. while ( my $ch = getc $fh ) {
  12.   push @ebx,$ch;
  13.   push @ecx,$ch;
  14. }
  15.  
  16. splice @ebx, 0, 5;
  17. splice @ecx, 0, 5;
  18.  
  19. splice @ebx, 0, 0x1e;
  20.  
  21. my @plain_text;
  22.  
  23. while ( my $ebx_ch = shift @ebx) {
  24.   my $ecx_ch = shift @ecx;
  25.   push @plain_text,( $ebx_ch ^ $ecx_ch );
  26. }
  27.  
  28. printf "%s\n", join( '',@plain_text);
Add Comment
Please, Sign In to add comment