PDA

View Full Version : Detect Heartbleed Vulnerability Script



Defaultzero
2014-10-16, 00:51
Hi guys,
this is my first bash script and I hope you enjoy it. This script detects Heartbleed vulnerability on IP address or domain.
After downloading the file you will need to chmod a+x the file to run as executable.
It is a simple little front end for NMAP so NMAP 6.25 minimum is required for this to work.
Any feedback would be appreciated!

http://www3.zippyshare.com/v/49808833/file.html

Click the ORANGE DOWNLOAD button to the right the ones underneath are ads.

stew
2014-10-16, 14:16
I will check it out and let you know how it works.

Nick_the_Greek
2014-10-16, 20:59
Nice try Defaultzero but your script can be summarized in one command:

nmap -d --script ssl-heartbleed --script-args vulns.showall -sV $IP
why want you try to filter $IP variable to accept only real/valid IPs. Let's say it will be a task/lesson for you and a good one I believe.
You will learn allot of things.

Defaultzero
2014-10-17, 02:20
I am very aware of the one command. But instead of writing it all manually thats why I wrote script

Nick_the_Greek
2014-10-17, 06:26
Maybe I sounded a little mean. I don't want to offended you. That's the results when someone (me) don't handle correctly the English language.

I'm just saying that the script is very simple.
I don't find any difficulty to type an IP address or domain, ruther to run your script.
Personally speaking I'd loved to see a more complex bash script.
My apologies...

repzeroworld
2014-10-17, 10:12
Nice try Defaultzero but your script can be summarized in one command:

nmap -d --script ssl-heartbleed --script-args vulns.showall -sV $IP
why want you try to filter $IP variable to accept only real/valid IPs. Let's say it will be a task/lesson for you and a good one I believe.
You will learn allot of things.

i agree with you Nick_the_Greek

To: Default Zero
Welcome to Bash Scripting ..hope that you create some complex scripts as you gain expierience in bash scripting but good work! :)

Defaultzero
2014-10-17, 20:20
I have a lot to learn on scripting! Nick the greek, I didnt take your comment offensive. That was very first script. I am thinking of of doing a pretty functional one. Thanks guys!

repzeroworld
2014-10-17, 22:05
I have a lot to learn on scripting! Nick the greek, I didnt take your comment offensive. That was very first script. I am thinking of of doing a pretty functional one. Thanks guys!
You can do alot of this with bash..if you know linux commands/programs very well, scripts creation will be like a piece of cake for you...linux was my arch enemy (was accustom to GUI windows)..lol :D

Defaultzero
2014-10-18, 02:32
I am pretty good with linux commands. Im just going to need to read every step of the way

repzeroworld
2014-10-18, 03:06
I am pretty good with linux commands. Im just going to need to read every step of the way

thumbs up!

Nick_the_Greek
2014-10-18, 11:06
I have a lot to learn on scripting! Nick the greek, I didnt take your comment offensive. That was very first script. I am thinking of of doing a pretty functional one. Thanks guys!

No worries Defaultzero. I'm looking forward for your next script. :)