代码安全,网络安全,系统内核

kuxun.cn 刷票

下载: ticket.pl
  1. #! /usr/bin/perl -w
  2. use strict;
  3. use Term::ANSIColor qw(:constants);
  4.  
  5. my $char = "";
  6.  
  7. while (1) 
  8. {
  9.     my $i = 0;
  10.     for ( $i=0; $i < 5; $i++)
  11.     {  
  12.         my $ret = `curl -s http://piao.kuxun.cn/beijing-changsha/p$i`;
  13.         my @lines = split('\n', $ret);
  14.  
  15.         my $date = $ARGV[0];
  16.  
  17.         foreach (@lines)
  18.         {  
  19.             if (/<a(.*)a>/ig && /$date/ && /$char/)
  20.             {  
  21.                 print RED "$2\n", RESET "$1\n\n" if /href="(.*)" title="(.*)\" target="_blank"/;
  22.             }  
  23.         }  
  24.     }  
  25.  
  26.     sleep 30;
  27.     system("clear");
  28. }

Example: perl ticket.pl 2-5

换了个风格

新年新气象  :)

kindle 为什么要多个大键盘

亚马逊积极为Kindle开放应用程序

继续阅读 »

获取system权限的cmdshell

sc Create SuperCMD binPath= “cmd /K start” type= own type= interact
sc start SuperCMD

返回顶部