Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 7:33 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Thu Aug 19, 2010 1:10 am 
Offline
Newbie

Joined: Thu Aug 19, 2010 12:33 am
Posts: 1
hi,

I would suggest to revise the included shell script a little bit.

BTW: awesome tool you guys have created...keep work going!!

[code]
#!/bin/bash

oa_host="http://xxxxx" #this should be parsed from the audit.config
subnet="x.x.x.x/24" #this should be parsed from the audit.config
nodes_online="nodes_active.txt"
nmap_file="nmap_file.txt"

clear
printf "\n*******************************************\n"
printf "******** O P E N A U D I T *********\n"
printf "********************************"

## scan for online devices
printf "\n\n***start nmap ping & tcp-syn scan for host discovery.."
nmap -sP -PS22,445,135 -n -oN $nodes_online $subnet >/dev/null
sleep 2

## check if we do have some online devices and then start the nmap synscan
if [ "$(cat $nodes_online |grep "report for" |cut -d" " -f5)" > 0 ]; then

printf "\n\n***active nodes found, start nmap syn scan..\n"

for node in `echo $(cat $nodes_online |grep "report for" |cut -d" " -f5)`
do
printf "\n\n***verify $node (default syn scan, service version & OS detection)\n"
nmap -v -sS -sV -O -oN $nmap_file $node >/dev/null

printf "***done we nmap scan...Upload data to OpenAudit server..\n"
oa_data=`cat $nmap_file`
wget -q --post-data="submit=submit&add=$oa_data" $oa_host/admin_nmap_input.php
printf "\n***next node..."

rm $nmap_file
rm "admin_nmap_input.php"
done
fi

printf "*** finished with nmap scan, have a look in your OpenAudit Web Frontend!\n\n"
[/code]

/brtw2003


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group