ok so I have a custom ruby script and another golang script that pulls some data from my networks, like nmap scans and other interesting results with IP.
I am researching in how to pipe this info into MHN so it shows with the results of the other honeypots.
but for someone totally new to hpfeeds is a bit confusing.. since what im trying to do is not exactly the same.. so I figure to do this:
I create from the UI a new sensor.. got the UUID
I log into MHN admin server and used the add_user
python add_user.py "$IDENT" "$SECRET" "$PUBLISH_CHANNELS" "$SUBSCRIBE_CHANNELS"
the part that already start confusing me in the "channels" I can figure by the name what could it be but I have research around and can't see a real definition for hpfeeds.
example I created two channels.. lets say one for ip and other for count
channel.ip and channel.count because I have two rows of data. so I may be already doing it wrong here.
so in my ruby script I parse a file and get two parameters. and trying to sent that to the hpfeeds broker port 10000 on the MHN server.
I can connect using the uuid and the password I told add_user.py
but when I connect I get:
ERROR: "accessfail."
ERROR: "accessfail."
Im guessing one for each channel..
I contacted the guy that created the ruby gem
he said:
"You got an accessfail if you try to publish on a channel that does not exist"
ok.. so now in where I am puzzle/stuck because I did created those two channels with add_user.py
so my sincere questions are:
what steps I'm I missing to be able to push my data, for for anyone else for the matter (maybe we can put this in the wiki)
if I sent my raw data for example ip will MHN automatically do the geolocation and show it in the map? im confused about this part as well.
Sorry if this sounds ridicules from experienced hpfeeds developers.. bare with me :)
Thanks!