Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisamTechnology authored Feb 10, 2019
1 parent 8b23307 commit 6f9c083
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<body>
<h1 align="center">ATSCAN SCANNER</h1>
<p align="center">
<a title="Version 15.0.7" href="https://github.com/AlisamTechnology/ATSCAN/releases">
<img src="https://img.shields.io/badge/V15.0.9-Release-green.svg">
<a title="Version 16.0.0" href="https://github.com/AlisamTechnology/ATSCAN/releases">
<img src="https://img.shields.io/badge/V16.0.0-Release-green.svg">
</a>
<a title="No issue known"href="https://github.com/AlisamTechnology/ATSCAN/issues">
<img src="https://img.shields.io/badge/Issues-None-brightgreen.svg">
Expand Down
2 changes: 1 addition & 1 deletion inc/conf/configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
our ($Version, $logoVersion, $scriptUrl, $logUrl, $ipUrl, $conectUrl, $script, $scriptInstall, $script_bac, $scriptbash, $scriptv,
$scriptCompletion, $scriptComplInstall, $readme, $uplog, $replace, $replaceFROM, $server, $geoServer);

$Version="15.0.9";
$Version="16.0.0";
$logoVersion="V $Version";
$scriptUrl="https://raw.githubusercontent.com/AlisamTechnology/ATSCAN/master/atscan.pl";
$logUrl="https://raw.githubusercontent.com/AlisamTechnology/ATSCAN/master/inc/conf/version.log";
Expand Down
5 changes: 3 additions & 2 deletions inc/conf/version.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ATSCAN SCANNER VERSION 15.0.9 RELEASE
ATSCAN SCANNER VERSION 16.0.0 RELEASE
=====================================================
CHANGES: v15.0.9 10/02/2019
CHANGES: v16.0.0 10/02/2019
- Optimize shoran process.
- Add shodan ports.
- Enjoy!
=================
30 changes: 26 additions & 4 deletions inc/functions/shodan.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
## SHODAN

our($ua, $limit, $shoapikey, $shoip, $shocount, $shosearch, $shoquery, $shoquerySearch, $shoqueryTags, $shoservices, $shoresolve,
$shoreverse, $shomyip, $shoapiInfo, $shofilters, $facets, $pages, $output, $V_IP, $V_RANG, @c);
$shoreverse, $shomyip, $shoapiInfo, $shofilters, $shoports, $facets, $pages, $output, $V_IP, $V_RANG, @c);

my $nn=0;
my $noshodanres="No results found|Invalid IP";
my $base="https://api.shodan.io";
my @sho_scans=($shoip, $shocount, $shosearch, $shoquery, $shoquerySearch, $shoqueryTags, $shoservices, $shoresolve, $shoreverse,
$shomyip, $shoapiInfo);
$shomyip, $shoapiInfo, $shoports);
$facets="" if !$facets;
$pages=1 if !$pages;

Expand Down Expand Up @@ -50,6 +50,7 @@ sub check_host_validation {
sho_ip($f, $nn) if $sub eq 1;
sho_dns_resolve($f, $nn) if $sub eq 2;
sho_dns_reverse($f, $nn) if $sub eq 3;
sho_ports($f, $nn) if $sub eq 4;
}else{
invalid();
}
Expand Down Expand Up @@ -149,7 +150,7 @@ sub build_sho_ip {
###########################################################################################
## JSON DECODE ######################################################################
sub _json {
my $shoRes =shift;
my $shoRes =$_[0];
my $json = JSON->new->allow_nonref;
return $json->decode( $shoRes );
}
Expand Down Expand Up @@ -285,6 +286,7 @@ sub sho_services {
my $n=0;
while ( $shoRes =~ /"(.*?)": "(.*?)"/migs ) {
$n++;
sleep 1;
sho_print("", "Port", $1, "");
sho_print("", "Name", $2, "");
print $c[10]."..........................................\n";
Expand Down Expand Up @@ -320,10 +322,10 @@ sub shoapinfo {
if ($shoRes) {
$shoRes=_json($shoRes);
end_hash_print($shoRes);
ltak();
}else{
no_Result("your API Info");
}
ltak();
}

###########################################################################################
Expand Down Expand Up @@ -364,6 +366,21 @@ sub sho_dns_reverse {
ltak();
}

###########################################################################################
## SHODAN PORTS #########################################################################
sub sho_ports {
my ($port, $nn)=@_;
sho_print("", "", "", "Getting all used shodan api Ports");
sleep 1;
my $shoRes=getShoResults("$base/shodan/ports?key=$shoapikey");
if ( $shoRes ) {
sho_print("", "Ports", $shoRes, "");
}else{
no_Result("ports");
}
ltak();
}

###########################################################################################
## SEARCH COUNT #########################################################################
sub sho_count {
Expand All @@ -381,6 +398,7 @@ sub sho_count {
no_Result($query);
}
}
ltak();
}

###########################################################################################
Expand Down Expand Up @@ -630,6 +648,10 @@ sub sho_ip {
my @shoreverse=build_sho_ip($shoreverse);
for my $f(@shoreverse) { $nn++; check_host_validation($f, $nn, "3"); }
}
if ( $shoports ) {
my @shoports=build_sho_ip($shoports);
for my $f(@shoports) { $nn++; check_host_validation($f, $nn, "4"); }
}
if ( $shoqueryTags ) { sho_query_tags(); }
if ( $shoquery ) { sho_query(); }
if ( $shoservices ) { sho_services(); }
Expand Down

0 comments on commit 6f9c083

Please sign in to comment.