Advertisement
ujiajah1

storeurl edit

Feb 15th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 5.27 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. $|=1;
  4.  
  5. while(<>) {
  6.  
  7. @kangmus = split;
  8.  
  9. } if ($kangmus[0] =~ m/http.*\.(fbcdn|akamaihd)\.net\/h(profile|photos).*[\d\w].*\/([\w]\d+x\d+\/.*\.[\d\w]{3}).*/) {
  10.     print "OK store-id=http://kangmus.setoran.kicimpring/fbcdn\n";
  11.  
  12. } elsif ($kangmus[0] =~ m/^https?:\/\/.*(profile|photo|creative).*\.ak\.fbcdn\.net\/((h|)(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
  13.         print "OK store-id=http://kangmus.setoran.kicimpring/fbcdn\n";
  14.  
  15. } elsif ($kangmus[0] =~ m/^http(.*)static(.*)(akamaihd|fbcdn).net\/rsrc.php\/(.*\/.*\/(.*).(js|css|png|gif))(\?(.*)|$)/) {
  16.     print "OK store-id=http://kangmus.setoran.kicimpring/fbcdn\n";
  17.  
  18. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*utm.gif.*/) {
  19.     print "OK store-id=http://kangmus.setoran.kicimpring/gif\n";
  20.  
  21. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*\/(.*\..*(mp4|3gp|flv))\?.*/) {
  22.     print "OK store-id=http://kangmus.setoran.kicimpring/video\n";
  23.  
  24. } elsif ($kangmus[0] =~ m/^https?\:\/\/c2lo\.reverbnation\.com\/audio_player\/ec_stream_song\/(.*)\?.*/) {
  25.     print "OK store-id=http://kangmus.setoran.kicimpring/reverbnation\n";
  26.  
  27. } elsif ($kangmus[0] =~ m/^http:\/\/(videos|photos|scontent)[\-a-z0-9\.]*instagram\.com\/hphotos[\-a-z0-9]*\/([\w\d\-\_\/\.]*.(mp4|jpg))/){
  28.         print "OK store-id=http://kangmus.setoran.kicimpring/instagram\n";
  29.  
  30. } elsif ($kangmus[0] =~ m/^http:\/\/distilleryimage[\-a-z0-9\.]*instagram\.com\/(.*)/){
  31.         print "OK store-id=http://kangmus.setoran.kicimpring/instagram\n";
  32.  
  33. } elsif ($kangmus[0] =~ m/^https?:\/\/attachment\.fbsbx\.com\/.*\?(id=[0-9]*).*/) {
  34.         print "OK store-id=http://kangmus.setoran.kicimpring/fsbx\n";
  35.  
  36. } elsif ($kangmus[0] =~ m/^https:\/\/.*\.google\.com\/chrome\/win\/.+\/(.*\.exe)/) {
  37.         print "OK store-id=http://kangmus.setoran.kicimpring/chrome\n";
  38.  
  39. } elsif ($kangmus[0] =~ m/^https?:\/\/i[1-4]\.ytimg\.com\/(.*)/) {
  40.         print "OK store-id=http://kangmus.setoran.kicimpring/ytimg\n";
  41.  
  42. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.4shared\.com\/.*\/dlink__[23]F([\w]+)_[23]F(.*)\_3Ftsid_[\w].*/) {
  43.         print "OK store-id=http://kangmus.setoran.kicimpring/4shared\n";
  44.  
  45. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.4shared\.com\/download\/([^\/]*).*/) {
  46.         print "OK store-id=http://kangmus.setoran.kicimpring/4shared\n";
  47.  
  48. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.[a-z]+\.bing\.net\/(.*)\&w=.*/) {
  49.         print "OK store-id=http://kangmus.setoran.kicimpring/bing\n";
  50.  
  51. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.bing\.(net|com)\/.*\?id=([a-zA-Z]\.[0-9]+)&pid=.*/) {
  52.         print "OK store-id=http://kangmus.setoran.kicimpring/bing\n";
  53.  
  54. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.gstatic\.com\/images\?q=tbn\:(.*)/) {
  55.         print "OK store-id=http://kangmus.setoran.kicimpring/gstatic\n";
  56.  
  57. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.reverbnation\.com\/.*\/(ec_stream_song|download_song_direct|stream_song)\/([0-9]*).*/){
  58.         print "OK store-id=http://kangmus.setoran.kicimpring/reverbnation\n";
  59.  
  60. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.dl\.sourceforge\.net\/(.*\.(exe|zip|mp3|mp4))/) {
  61.         print "OK store-id=http://kangmus.setoran.kicimpring/sourceforge\n";
  62.  
  63. } elsif ($kangmus[0] =~ m/^https?:\/\/.*\.facebook\.com\/(.*)/) {
  64.     print "OK store-id=http://kangmus.setoran.kicimpring/facebook\n";
  65.  
  66. } elsif ($kangmus[0] =~ m/^https?:\/\/graph\.facebook\.com\/(\w+)\/.*/) {
  67.     print "OK store-id=http://kangmus.setoran.kicimpring/facebook\n";
  68.  
  69. } elsif ($kangmus[0] =~ m/^https?:\/\/fs[0-9]+\.filehippo\.com\/[^\/]*\/[^\/]*\/(.*)/) {
  70.         print "OK store-id=http://kangmus.setoran.kicimpring/filehipo\n";
  71.  
  72. } elsif ($kangmus[0] =~ m/^https?:\/\/download[0-9]+.mediafire\.com\/.*\/\w+\/(.*)/) {
  73.         print "OK store-id=http://kangmus.setoran.kicimpring/mediafire\n";
  74.  
  75. } elsif ($kangmus[0] =~ m/^https?:\/\/.*(googleusercontent.com|blogspot.com)\/(.*)\/([a-z0-9]+)(-[a-z]-[a-z]-[a-z]+)?\/(.*\.(jpg|png))/) {
  76.         print "OK store-id=http://kangmus.setoran.kicimpring/googleisercontent\n";
  77.  
  78. } elsif ($kangmus[0] =~ m/^https?:\/\/([a-z])[\d]{1,2}?(.gstatic\.com.*|\.wikimapia\.org.*)/) {
  79.         print "OK store-id=http://kangmus.setoran.kicimpring/gstatic\n";
  80.  
  81.  
  82. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*youtube.*ptracking.*/){
  83.     @video_id = m/[&?]video_id\=([^\&\s]*)/;
  84.     @cpn = m/[&?]cpn\=([^\&\s]*)/;
  85.     unless (-e "/tmp/@cpn"){
  86.     open FILE, ">/tmp/@cpn";
  87.     print FILE "@video_id";
  88.     close FILE;
  89.     }
  90.     $out="ERR";
  91.  
  92. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*youtube.*stream_204.*/){
  93.     @docid = m/[&?]docid\=([^\&\s]*)/;
  94.     @cpn = m/[&?]cpn\=([^\&\s]*)/;
  95.     unless (-e "/tmp/@cpn"){
  96.     open FILE, ">/tmp/@cpn";
  97.     print FILE "@docid";
  98.     close FILE;
  99.     }
  100.     $out="ERR";
  101.  
  102. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*youtube.*player_204.*/){
  103.     @v = m/[&?]v\=([^\&\s]*)/;
  104.     @cpn = m/[&?]cpn\=([^\&\s]*)/;
  105.     unless (-e "/tmp/@cpn"){
  106.     open FILE, ">/tmp/@cpn";
  107.     print FILE "@v";
  108.     close FILE;
  109.     }
  110.     $out="ERR";
  111.  
  112. } elsif ($kangmus[0] =~ m/^https?\:\/\/.*(youtube|googlevideo).*videoplayback.*/){
  113.     @itag = m/[&?](itag\=[0-9]*)/;
  114.     @range = m/[&?](range\=[^\&\s]*)/;
  115.     @cpn = m/[&?]cpn\=([^\&\s]*)/;
  116.     @mime = m/[&?](mime\=[^\&\s]*)/;
  117.     @id = m/[&?]id\=([^\&\s]*)/;
  118.  
  119.     if (defined(@cpn[0])){
  120.         if (-e "/tmp/@cpn"){
  121.         open FILE, "/tmp/@cpn";
  122.         @id = <FILE>;
  123.         close FILE;}
  124.     }
  125.     print "OK store-id=http://kangmus.setoran.kicimpring/youtube/id=@id@mime@range\n";
  126.  
  127. } else {
  128.     print "ERR\n";
  129. }  
  130.    
  131. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement