Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre>
- <FORM ACTION="" method="post">
- <textarea NAME="IPS"></textarea>
- <input type="submit" name="ACTION" value="GO">
- </form>
- <?php
- // PULL IP ADDRESS OUT OF TEXT STRING IMPUTS
- // Simply goto www.hidemyass.com copy (ctrl-a) the page you want and paste it in the form box
- // OH yeah you need to have this script running somewhere.
- //No this won't pull it automatically. Do some work .
- if(isset($_POST['IPS'])){
- $string=$_POST['IPS'];
- $valid = preg_match_all('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(.*)\d{2,5}/', $string,$matches);
- print("\n");
- foreach($matches[0] as $x){
- $part=explode(" ",$x);
- print(trim($part[0]).":".trim($part[1])."\n");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement