Guest User

Untitled

a guest
Apr 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use warnings;
  4.  
  5. use strict;
  6.  
  7. my $nameoffile;
  8. my $starttime = 28.374595;
  9. my $endtime = 44.593813;
  10. my $totaltime = $endtime-$starttime;
  11. my $numberoflines = 0;
  12. my $user = 0;
  13. my $pass =0;
  14.  
  15. print "\n";
  16.  
  17. print "Name of File:";
  18.  
  19. $nameoffile = <STDIN>;
  20.  
  21. open FH, "$nameoffile" or die $!;
  22.  
  23. while (<FH>) {
  24.  
  25. $numberoflines++;
  26.  
  27. if ($_ =~ /user/i){
  28. $user++;
  29. }
  30.  
  31. if ($_ =~ /pass/i){
  32. $pass++;
  33.  
  34. }}
  35.  
  36.  
  37. print "\n\n";
  38.  
  39. print "Summary:\n\n";
  40.  
  41. print "There are $numberoflines lines in this file.\n\n";
  42.  
  43. print "The starting time was 22:28:28:374595\n\n";
  44.  
  45. print "The ending time was 22:28:44.592813\n\n";
  46.  
  47. print "The total time of this attack was $totaltime\n\n";
  48.  
  49. print "User and variations thereof shows up $user times\n\n";
  50.  
  51. print "Pass and variations thereof shows up $pass times\n\n";
Add Comment
Please, Sign In to add comment