Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.32 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. print 'interface: ';
  7.  
  8. chomp( my $wireless_interface = <STDIN> );
  9.  
  10. my $iwlist_output = `iwlist $wireless_interface scan`;
  11.  
  12. print $iwlist_output, "------\n";
  13.    
  14. if ( $iwlist_output =~ m{Interface doesn't support scanning}i ) {
  15.     die 'stocazzo che ti funziona!', "\n";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement