Skip to content

Commit

Permalink
upload updates
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Jan 1, 2018
1 parent ee1ee53 commit 50461b7
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 170 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
==============
The MIT License (MIT)

Copyright (c) 2016-2017 Heitor Gouvêa.
Copyright (c) 2016-2018 Heitor Gouvêa.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
[+] GITHUB: https://github.com/GouveaHeitor
[+] TELEGRAM: @GouveaHeitor
```
##### Tricks



##### Bugs

Expand Down
20 changes: 14 additions & 6 deletions check.pl
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
#!/usr/bin/perl

# Checkhosts by a domain list via ICMP connection
# Use: ./check.pl targets.txt
# Heitor Gouvêa - hi@heitorgouvea.me

use 5.010;
use strict;
use warnings;
use Net::Ping;

sub main {
my $domain = $ARGV[0];
if ($ARGV[0]) {
open (my $targets, "<", $ARGV[0]);

if ($domain) {
my $checkHost = Net::Ping -> new();
while (my $target = <$targets>) {
chomp($target);

if ($checkHost -> ping ($domain)) {
print "$domain\n";
}
my $checkHost = Net::Ping -> new();

if ($checkHost -> ping ($target)) {
print "$target\n";
}
}

close ($targets);
}
}

Expand Down
159 changes: 0 additions & 159 deletions cowroot.c

This file was deleted.

16 changes: 12 additions & 4 deletions ip.pl
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
#!/usr/bin/perl

# Get IP by domain
# Use: ./ip.pl targets.txt
# Heitor Gouvêa - hi@heitorgouvea.me

use 5.010;
use strict;
use warnings;
use IO::Socket::INET;

sub main {
my $domain = $ARGV[0];
if ($ARGV[0]) {
open (my $targets, "<", $ARGV[0]);

if ($domain) {
my $ipAddr = inet_ntoa (scalar gethostbyname($domain));
print "$ipAddr\n";
while (my $target = <$targets>) {
chomp ($target);

my $ipAddr = inet_ntoa (scalar gethostbyname($target));
print "$ipAddr\n";
}

close ($targets);
}
}

Expand Down
5 changes: 5 additions & 0 deletions socket.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/perl

# A script to make socket connection
# Use: ./socket.pl target.com:80
# Heitor Gouvêa
# hi@heitorgouvea.me

use 5.010;
use strict;
use warnings;
Expand Down

0 comments on commit 50461b7

Please sign in to comment.