Jump to content

E3pO

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

E3pO's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Am i missing something because i do not see an edit button!!!!!!! Revision 2... Hello, Today i need some help on replacing all the pointers in a file that link to 0x00864C7C with numbers, such as "1, 2, 3". For instance, if i load up a file in a program it will have "jonny.cool, jonny.bob, jonny.hagw". If i look in hex, i only see one jonny. It is located at 0x00864C7C. So, what i need to do is a foreach pointer that is 0x00864C7C change to a number. The number will be the pointer number, for instance the first pointer the program finds will be number 1, the second pointer it finds will be number 2. Another thing is some of the files i'm working with can be over 200mb's, so i need a good way to load them and do this. Example: Input: jonny.cool, jonny.bob, and jonny.hagw Output: 1.cool, 2.bob, 3.hagw What would be the best way of going about this, Thank you, Will
  2. all the pointers*. Sorry couldn't find an edit button.
  3. Hello, Today i need some help on replacing all the offsets in a file that link to 0x00864C7C. For instance, if i load up a file in a program it will have "jonny.cool, jonny.bob, jonny.hagw". If i look in hex, i only see one jonny. It is located at 0x00864C7C. I need to do a recursive change on a large file "Sometimes over 100mb's. So instead of jonny.cool, jonny.bob, and jonny.hagw, It will produce, 1.cool, 2.bob, 3.hagw in the order that the name was replaced. What would be the best way of going about this?
  4. Resolved.. <script type="text/javascript"> // ==UserScript== // @name HalomapsDL // @namespace Halomaps // @description HalomapsDownload // @include *.halomaps.org* //@author E3pO //@websiteurl http://wmclan.net/ // ==/UserScript== if(String(window.location).match(/http:\/\/hce\.halomaps\.org\//i)) { var r_text = new Array (); r_text[0] = "ftp://files1.halomaps.org/maps/"; r_text[1] = "ftp://files2.halomaps.org/maps/"; r_text[2] = "ftp://files3.halomaps.org/maps/"; var i = Math.floor(3*Math.random()) var top_ad_box = document.getElementById("top_ad_box"); var menu = document.getElementById("mainmenu"); var body = document.getElementsByTagName("body").innerHTML; var match, re = /File Name:<\/b> (.*?)<br>/img; match = re.exec(document.documentElement.innerHTML); top_ad_box.innerHTML = '<center>Download link grabber by E3pO. www.wmclan.net<hr /><a href="'+r_text[i]+match[1]+'"><img src="http://ts.wmclan.net/photos/misc/download.png" alt="Download" border="0"/></a></center><script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=1182091&br=1&dk=776f726b2066726f6d20686f6d655f305f325f776562"></script>'; menu.innerHTML = '<a href="./">Home Page</a><br/><a href="index.cfm?pg=4">Articles</a><br/><a href="http://forum.halomaps.org">User Forum</a><br/><a href="index.cfm?pg=66">Halo CE Servers</a><br/><a href="index.cfm?pg=91">Map ScreenShots</a><br/><a href="index.cfm?pg=92">ScreenShot Clan</a><br/><a href="index.cfm?pg=60">Submit Files</a><br/><a href="http://wmclan.net/">Wmclan</a><br/>'; } </script>
  5. Still doesn't work? Are you sure? I already tried that. var dl_url = document.documentElement.innerHTML.match(/<p><b>File Name:<\/b> (.*?)<br>/i); top_ad_box.innerHTML = dl_url;
  6. Hello, back again but this time with some javascript questions! I'm doing some regex on a webpage and i need to get the file name, blah.zip, in <p><b>File Name:<b> blah.zip<br> I've come up with the following, var dl_url = document.documentElement.innerHTML.match(/<p><b>File Name:</b> (.*?)<br>); top_ad_box.innerHTML = dl_url; but the code breaks at <p><b>File Name:</b> (.*?)<br> What should i do to make that pass? Thanks.
  7. char(15) utf8_bin Also, not sure if it made a difference but i added the , $this->connection to the end of the query. <?php $q2 = "SELECT ip FROM iplist WHERE ip = '$ip'"; $result = mysql_query($q2, $this->connection); ?> Final working code, thank you very much <?php function newview($ip){ //Code help from PHPFreaks.com //Special Thanks to Maq for super fast help and reply! $q2 = "SELECT ip FROM iplist WHERE ip = '$ip'"; $result = mysql_query($q2, $this->connection); if(mysql_num_rows($result) > 0) { return false; } else { $q = "INSERT INTO iplist (ip) VALUES ('$ip')"; $result = mysql_query($q, $this->connection); return $result; } } function views(){ if($this->views3 < 0){ $q = "SELECT id FROM iplist"; $result = mysql_query($q, $this->connection); $this->views3 = mysql_numrows($result); } return($this->views3); } ?> SQL CODE: CREATE TABLE IF NOT EXISTS `iplist` ( `id` int(11) NOT NULL auto_increment, `ip` char(15) character set utf8 collate utf8_bin NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
  8. Hello! Thanks for the fast reply on my last question.. Very helpful! What I need help on now is how to add an if statement to my insert code so that it only inserts if the ip is nowhere in the database.. For instance, in a super omfg easy form.. if ip is != anything in database then insert, otherwise do nothing at all. <?php function newview($ip){ $q = "INSERT INTO iplist (ip) VALUES ('$ip')"; $result = mysql_query($q, $this->connection); return $result; } ?>
  9. Amazing!! Thank you very much!!!! Added PHPFreaks link to front page!!!! http://proxy.wmclan.net/ Thank you very much premiso.
  10. Hello, I can't seam to figure out why this is erroring.. Any help would be greatly appreciated! <?php $url = (base64_decode($_GET['url'])); $ip = (base64_decode($_GET['ip'])); $value = "yes"; $link = mysql_connect('localhost', 'root', 'XXXXXDELETEDXXXXX'); mysql_select_db("XXXXXDELETEDXXXXX", $link) or die(mysql_error()); if(!is_resource($link)) { echo "Failed to connect to the server\n"; // ... log the error properly } else { // Reverse magic_quotes_gpc/magic_quotes_sybase effects on those vars if ON. if(get_magic_quotes_gpc()) { $url = stripslashes(base64_decode($_GET['url'])); $ip = stripslashes(base64_decode($_GET['ip'])); } else { $url = (base64_decode($_GET['url'])); $ip = (base64_decode($_GET['ip'])); } // Make a safe query $query = sprintf("UPDATE sites SET show = '%s' WHERE url = '%s' AND ip = '%s'", mysql_real_escape_string($value, $link), mysql_real_escape_string($url, $link), mysql_real_escape_string($ip, $link)); mysql_query($query, $link) or die(mysql_error()); if (mysql_affected_rows($link) > 0) { echo "Product inserted\n"; } } ?> Returns this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show = 'yes' WHERE url = 'http://ProxyNinja.com/' AND ip = 'deleted'' at line 1 http://xxxxxxxxxxx/prox/updateVerify.php?url=aHR0cDovL1Byb3h5TmluamEuY29tLw==&ip=ZGVsZXRlZA== SQL DATA: -- phpMyAdmin SQL Dump -- version 3.2.0-dev -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 11, 2009 at 04:18 PM -- Server version: 5.0.51 -- PHP Version: 5.2.4-2ubuntu5.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `deleted` -- -- -------------------------------------------------------- -- -- Table structure for table `sites` -- CREATE TABLE IF NOT EXISTS `sites` ( `id` int(11) NOT NULL auto_increment, `name` varchar(200) NOT NULL, `email` varchar(200) NOT NULL, `url` varchar(200) NOT NULL, `details` text NOT NULL, `ip` varchar(200) NOT NULL, `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, `show` varchar(200) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `sites` -- INSERT INTO `sites` (`id`, `name`, `email`, `url`, `details`, `ip`, `timestamp`, `show`) VALUES (5, 'ProxyNinja', 'ProxyNinja@atspam.info', 'http://ProxyNinja.com/', 'Feel free to browse the internet at school with ProxyNinja.com to unblock websites like Myspace, Bebo, Facebook, Friendster, hi5 and more!', 'deleted', '2009-05-11 01:41:11', '');
×
×
  • 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.