Advertisement
G3n3Rall

BHG Base64 Encoder / Decoder

Jun 15th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.49 KB | None | 0 0
  1. Hi Guys
  2. Base64 Encoder / Decoder Perl
  3.  
  4.  
  5. #!/usr/bin/perl
  6. #BHG Base64 Encoder and Decoder
  7. #Code By G3n3Rall
  8. #Black Hat Group Security Center
  9. #www.black-hg.org   ||| www.black-hg.org/cc/
  10. #We Are : Net.Edit0r , A.Crox , 3H34N
  11. #Am!n , tHe.K!ll3r , ArYaIeIrAn , G3n3Rall
  12. #Mr.XHat , NoL1m1t , Dj.TiniVini , 4ut0n0m0us
  13. #############
  14. #My New Friendz
  15. #Iranian Dark Coders
  16. #www.idc-team.net  ||| www.idc-team.net/cc/
  17. #M.R.S.CO , DevilZone , Mr.Cicili
  18. #############
  19. use MIME::Base64;
  20. use Term::ANSIColor;
  21.  
  22. Menu:;
  23. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  24. print color 'bold red';
  25. print "\n\t Base64 Encoder / Decoder \n\t\t www.Black-hg.org [Home] \n\t\t www.idc-team.com \n\n";
  26. print color 'reset';
  27. print color 'bold green';
  28. print "\n\t\t Menu:\n";
  29. print color 'reset';
  30. print color 'bold yellow';
  31. print "\n\t\t What Do you want ?";
  32. print "\n\n\t\t 1-EnCode";
  33. print "\n\t\t 2-DeCode";
  34. print "\n\n\t\t 3-Exit";
  35. print color 'reset';
  36. print color 'blue';
  37. print "\n\n\t\t Choose:";
  38. chomp($Choose=<>);
  39. print color 'reset';
  40.  
  41. if ($Choose==1){
  42. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  43. print color 'bold blue';
  44. print "\nEnter Text To Encode:";
  45. chomp($TEXT=<STDIN>);
  46. print color 'reset';
  47. $Encode = encode_base64($TEXT);
  48. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  49. print color 'bold red';
  50. print "\n####################################\n";
  51. print color 'reset';
  52. print color 'bold yellow';
  53. print "$Encode";
  54. print color 'reset';
  55. print color 'bold red';
  56. print "####################################\n";
  57. print color 'reset';
  58. exit;
  59. }
  60.  
  61. if ($Choose==2){
  62. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  63. print color 'bold blue';
  64. print "\nEnter Text To Decode:";
  65. chomp($TEXT=<STDIN>);
  66. print color 'reset';
  67. $Decode = decode_base64($TEXT);
  68. print color 'bold red';
  69. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  70. print "\n####################################\n";
  71. print color 'reset';
  72. print color 'bold yellow';
  73. print "$Decode";
  74. print color 'reset';
  75. print color 'bold red';
  76. print "\n####################################\n";
  77. print color 'reset';
  78. exit;
  79. }
  80. if ($Choose==3){
  81. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  82. print color 'bold red';
  83. print "\nExit\n";
  84. print color 'reset';
  85. exit;
  86. }
  87. else {
  88. system(($^O eq 'MSWin32') ? 'cls' : 'clear');
  89. print color 'bold red';
  90. print "\n\t\t Invalid ID \n";
  91. sleep(1);
  92. print color 'reset';
  93. goto Menu;
  94. }  
  95.  
  96.  
  97.  
  98. Black Hat group Security Center
  99. Site: www.Black-hg.org
  100. Forum: www.Black-hg.org/cc/
  101. By G3n3Rall
  102. AnTi.SecurityBoy@Gmail.com
  103.  
  104. Bye.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement