Refactor
:my
=>
'code'
Codes
Refactorings
Popular
Best
Submit
Spam
Account
Logout
Login
JavaScript doesn't seem to be activated, expect things to be ugly and sloppy!
Learn How to Create Your Own Programming Language
createyourproglang.com
Recent
How to get accepted in Fileice (200% Working) 22/2012
Premium Account
FILE HOSTS PREMIUM ACCOUNT
ALL FILE HOST PREMIUM ACCOUNTS
Zynga Slingo Trainer v5.12
iTunes Gift Card Generator V3.1 2012
Diablo 3 GOLD Coins FREE
Working PS3 Jailbreak 3.65 And 3.66
ExtaBit Premium Accounts and Cookies
Steam Wallet Hack - Money Adder & Hack v3
Popular
XBOX POINTS GENERATOR - MICROSOFT POINTS GENERATOR v1.2012
11 may 2012 premium uploading accounts 100% working
Free Microsoft Points
Free Microsoft Points - Microsoft Points Generator - Xbox Live Codes 2012
Car Town Free Blue Points Hack
Free CarTown Blue Points Generator and CarTown Templates
Better way to get content via jQuery $.get()
Free Microsoft Points
Simple Days Purger
Sharecash Downloader Bypass Surveys New 05/2012
Pastable version of
Smtp Scanner
<pre class='prettyprint' language='perl'>#!/usr/bin/perl #smtp scanner by Tak use strict; use warnings; use Net::Ping; use Net::Telnet; print "ip list: "; #asks for ip's chomp(my $input=<STDIN>); #takes file # #if nothing was entered # if ($input=~/^$/) { print "ip range, ex 0.0.0.0-1.1.1.1 :"; chomp($input=<STDIN>); #idea for most of this ip generator i stole from Asia Pacific Network Information Center (APNIC2) # #generateing a log. $|=1; #pipes become super pipes print "where to log ip range: "; chomp(my $log=<STDIN>); #takes a file name to log open(LOG, '>>', "$log") or die "couldent open $log file\n"; #opens the log file my @ip0=split(/-/, $input); #seperates ip ranges my @ip1=split(/\./, $ip0[0]); #seperates numbers my @ip2=split(/\./, $ip0[$#ip0]); #complicates loops that generate every ip address inbetween the ranges for (my $a=$ip1[0]; $a<1+$ip2[0]; $a++) { for (my $b=$ip1[1]; $b<1+$ip2[1]; $b++) { for (my $c=$ip1[2]; $c<1+$ip2[2]; $c++) { for (my $d=$ip1[3]; $d<1+$ip2[3]; $d++) { print "$a.$b.$c.$d\n"; print LOG "$a.$b.$c.$d\n"; } } } } close(LOG); exit 0; } open(IP, "$input") or die "couldent open ip file\n"; #opens file</pre> <pre class='prettyprint' language='perl'># my @ip; #all ip addresses my @liveip; #all working ip addresses my @deadip; #all dead ip addresses # # foreach(my $line = <IP>) { $line =~ s/\n//g; #rid of the newline. push(@ip, "$line"); } close(IP); #closeing the file</pre> <pre class='prettyprint' language='perl'></pre> <pre class='prettyprint' language='perl'></pre> <pre class='prettyprint' language='perl'>foreach my $ip (@ip) { #if it exists if (pingecho($ip, 10)) { push(@liveip, "$ip"); next; } #if its dead else { push(@deadip, "$ip"); } #if nothing is alive if ($#ip eq $#deadip) { die "no live hosts\n"; } } #wipeing the useless variables @deadip=(); @ip=();</pre> <pre class='prettyprint' language='perl'>#we got all the alive ip addresses, now to probe with Telnet for SMTP running!</pre> <pre class='prettyprint' language='perl'>my @testsmtp; #ip's to be tested for smtp #makeing the live ip's into telnet objects. foreach my $ip (@liveip) { #if no port is there, it gives WTF message. and moves on my $thing = new Net::Telnet (Host => $ip, Port => '25', Errmode => 'return') or print "WTF?!\n" and next; #now that we have the objects we can test them. if ($thing->open()) { print $thing->host . " has smtp alive\n"; } }</pre> <a href="http://www.refactormycode.com/codes/669-smtp-scanner" style="color:#fff" title="As seen on RefactorMyCode.com"><img alt="Small_logo" src="http://www.refactormycode.com/images/small_logo.gif" style="border:0" /></a>