Jump to content

newbtophp

Members
  • Posts

    631
  • Joined

  • Last visited

Everything posted by newbtophp

  1. Danny!!!!!! What do you think the problem might be?
  2. Fixed a typo: <form action="index2.php" method='post'> <textarea name='so' rows="8" cols="20"></textarea><br> <input type='submit' name='submit' value='Submit'/><br> </form> <?php $so = $_POST['so']; $so = str_replace('?>', "", $so); $so = str_replace('eval($_G', '$some($_G', $so); $submit= $_POST['submit']; if($so == "") echo ""; else { if($submit == "Submit") { echo $so; $some= ereg_replace('eval', 'echo', $some); eval ($some); echo "?>\n"; } } ?> Still looking for help though :-\
  3. Replace your old processfeedback.php with: <?php //Customer Name $custname = $_REQUEST['custname'] ; //Customers Email $email = $_REQUEST['email'] ; //Customers Feedback $message = $_REQUEST['feedback'] ; //Subject $subject = "Feed Back from website"; //You (to address) $to = "dvera@ci.edinburg.tx.us"; $headers = "From: $email"; $sent = mail($to, $subject, $message, $headers) ; if($sent) {print "W000t! It works!"; } else {print "Damn! It dont work"; } ?>
  4. Just need to know what im doing wrong and how to solve. Hope someone can help me
  5. I have some encoded code and if I change eval to $some, then add $some= ereg_replace('eval', 'echo', $some); eval ($some); before ?>, I get the decoded. Im trying to build a little script which would do this, using $_POST, but it dont echo the decoded it just echos whats been inserted. Heres the code which I've come up with: <form action="index2.php" method='post'> <textarea name='so' rows="8" cols="20"></textarea><br> <input type='submit' name='submit' value='Submit'/><br> </form> <?php $so = $_POST['so']; $so = str_replace('?>', "", $so); $so = str_replace('eval($_G', '$some($_G', $so); $submit= $_POST['submit']; if($so == "") echo ""; else { if($submit == "Submit") { echo $so; $some= ereg_replace('eval', 'echo', $some); eval ($some); echo "?>\n"; } } ?> All help is greatly apreciated. Thank You.
  6. Danny I tested your code on a number of files it works on some but, on others it just echos a blank textarea with php tags without any code because of it. I know this because when I remove the code it functions fine.
  7. Thanks Danny that was great! Solved my problems
  8. thanks Danny but i think it still parses through, still get the chunk off rubish added on the end of the uploaded code.
  9. my script is an upload script which echos the upload into a textarea. im using your code to remove uneeded code which is uploaded. I tried adding a random base64 string on the end of my upload, and your code works fine except it adds a chunk of rubish/junk on the end of my upload in the textarea. Is their anyway to remove that? or purify the code.
  10. Thanks it worked! I've learnt something new
  11. I've also tried replacing the start and end with "/**", "*/" to try and bypass it but still no luck. I'd just like it removed since it intefers with the functionality of my script.
  12. This is the pattern (it starts the same and ends the same, except the stuff inbetween is random): $file = str_replace('eval(base64_decode("THIS BIT IS A RANDOM STRING WHICH CHANGES ALL THE TIME=="));', "", $file); Always starts with: eval(base64_decode(" and always ends with: ")); (its a base64 string) Can you show me how you'd do it?. When it comes to replacing I always stick to str replace, never come to this situation until now. Thanks.
  13. Im trying to figure out a way of replacing data. I can't use str replace because the data I'd like to replace/remove is random and different every time. $file = str_replace('eval(base64_decode("THIS BIT IS A RANDOM STRING WHICH CHANGES ALL THE TIME=="));', "", $file); All help is apreciated. Thanks
  14. Thanks for the answer its close, but the result is not how I'd like it . The results turn out like: [test:ok]
  15. I have a huge list of words in a txt. I was wondering is their a way of formatting it? The list is like: someone:something hello:bye Its all separated by ":" with no spaces. I was wondering if I can the formatting of the list using php so it looks like: The list is like: something:someone bye:hello Is their a way to do this?, if so would you mind, providing an example please. Thanks
  16. Sorry Dan, for the bad description, its meant to use php's strtr function. Fill in the form and enter the number to read from and too and when submit is clicked it echos the result. Heres the code with added description: <form action="index.php" method='post'> <p> Code<br /> <textarea name='code' rows="8" cols="50"></textarea><br> Number<br /> <input type="text" name="number" /><br /> strtrfrom<br /> <input name="strtrfrom" value="" size="50" type="text" /><br /> strtrtoo<br /> <input name="strtrtoo" value="" size="50" type="text" /><br /> <br /> <input type='submit' name='submit' value='Submit'/><br> </form> </p> <?php //the code to the strtr on $code = $_POST['code']; //the number to read from $number = $_POST['number']; $code2 = substr($code, $number); //strtrfrom $strtrfrom = $_POST['strtrfrom']; //strtrtoo $strtrtoo = $_POST['strtrtoo']; //submit $submit= $_POST['submit']; if($code == "") echo ""; else { if($submit == "Submit") { //echo result echo "<textarea rows=\"8\" cols=\"50\">\n"; echo(strtr($code2,$strtrfrom,$strtrtoo)); echo "</textarea>\n"; } } ?> Thanks
  17. Hmm still not got it working, anyone can help?
  18. Soo would this solve it? <form action="index.php" method='post'> <p> Code<br /> <textarea name='code' rows="8" cols="50"></textarea><br> Number<br /> <input type="text" name="number" /><br /> strtrfrom<br /> <input name="strtrfrom" value="" size="50" type="text" /><br /> strtrtoo<br /> <input name="strtrtoo" value="" size="50" type="text" /><br /> <br /> <input type='submit' name='submit' value='Submit'/><br> </form> </p> <?php $code = $_POST['code']; $number = $_POST['number']; $code2 = substr($code, $number); $strtrfrom = $_POST['strtrfrom']; $strtrtoo = $_POST['strtrtoo']; $submit= $_POST['submit']; if($code == "") echo ""; else { if($submit == "Submit") { echo "<textarea rows=\"8\" cols=\"50\">\n"; echo(strtr($code2,$strtrfrom,$strtrtoo)); echo "</textarea>\n"; } } ?>
  19. What am I doing wrong?, im trying to create a script using the strtr function. Except the number dont work. <form action="index.php" method='post'> <p> Code<br /> <textarea name='code' rows="8" cols="50"></textarea><br> Number<br /> <input type="text" name="number" /><br /> strtrfrom<br /> <input name="strtrfrom" value="" size="50" type="text" /><br /> strtrtoo<br /> <input name="strtrtoo" value="" size="50" type="text" /><br /> <br /> <input type='submit' name='submit' value='Submit'/><br> </form> </p> <?php $code = $_POST['code']; $number = $_POST['number']; $code2 = substr($code, $number); $strtrfrom = $_POST['strtrfrom']; $strtrtoo = $_POST['strtrtoo']; $submit= $_POST['submit']; if($code == "") echo ""; else { if($submit == "Submit") { echo "<textarea rows=\"8\" cols=\"50\">\n"; echo(strtr($code,$strtrfrom,$strtrtoo)); echo "</textarea>\n"; } } ?> Can anyone help? Thanks
  20. Is that the only way?, is their any loaders to place in the root or any modification to with .htaccess or php.ini? to bypass that. Whats the quickest way to enable bcompiler.
×
×
  • 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.