- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-20-2020 12:58 PM - edited 03-20-2020 01:12 PM
Hello.
I am absolutiely locked trying to send a single IP to minemeld (as an indicator) from a script.
Some help or tips will be very appreciated:
I want to add a single IP via API to Minemeld
I figure out (I haven't found documentation) I need a miner to receive it.
So I have created a Miner:
headers = { "Content-Type": "application/json" }
auth = ("feeds","feeds")
payload = {
"indicator": "8.8.8.8",
"type": "IPv4",
"comment": "test comment",
"share_level": "red",
"confidence": "100",
"ttl": "86400"
}
r = requests.post(https://minemeld.host/config/data/LISTENER_IPV4_indicators/append?h=LISTENER_IPV4&t=localdb,data=json.dumps(payload),headers=headers,auth=auth,verify=False)
[2020-03-20 14:03:49 CET] [5815] [INFO] AUDIT - {"msg": null, "action": "POST /config/data/LISTENER_IPV4_indicators/append", "params": [["value:h", ["LISTENER_IPV4"]], ["value:t", ["localdb"]], ["jsonbody", "{\"comment\": \"test comment\", \"indicator\": \"8.8.8.8\", \"confidence\": \"100\", \"share_level\": \"red\", \"ttl\": \"86400\", \"type\": \"IPv4\"}"]], "user": "admin/feeds"}
[2020-03-20 14:03:49 CET] [5815] [DEBUG] RPC sent to mbus:directslave:LISTENER_IPV4:rpc for method hup
127.0.0.1 - feeds [20/Mar/2020:14:03:49 +0100] "POST /config/data/LISTENER_IPV4_indicators/append?h=LISTENER_IPV4&t=localdb HTTP/1.0" 200 21 "-" "python-requests/2.23.0"
03-20-2020 02:52 PM - edited 03-20-2020 02:53 PM
Hello
I have found the solution.
The prototype must be a localdb
stdlib.localDB
Regards,
Juan
03-20-2020 02:52 PM - edited 03-20-2020 02:53 PM
Hello
I have found the solution.
The prototype must be a localdb
stdlib.localDB
Regards,
Juan
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!