This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| DIR=$1 | |
| CRT="SecureCRT.exe" | |
| FX="SecureFX.exe" | |
| LIC="LicenseHelper.exe" | |
| crt_old_key="6e533e406a45f0b6372f3ea1071700000c7120127cd915cef8ed1a3f2c5b" | |
| crt_new_key="785782391ad0b9169f17415dd35f00002790175204e3aa65ea10cff20818" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| headers = {'X-Auth-Token': 'TOKENHERE'} | |
| res = ['10.15.200.77', 'v2c', 'public'] | |
| data = '{"hostname":"%s","version":"%s","community":"%s"}' % (res[0],res[1],res[2]) | |
| response = requests.post('http://librenms.com/api/v0/devices', data=data, headers=headers) | |
| print(response.text) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST -d '{"hostname":"10.15.200.77","version":"v1","community":"public"}' -H 'X-Auth-Token: TOKENHERE' http://librenms.com/api/v0/devices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import fileinput | |
| import traceback | |
| bot_message = 'test request' | |
| token = 'token' | |
| chat_id = 'chat_id' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sendp(Ether(src=RandMAC(),dst=RandMAC())/IP(src=RandIP(),dst=RandIP()), iface='enp2s0', count=1000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import urllib.request | |
| patr = '10.' | |
| with urllib.request.urlopen( | |
| "API-URL.WITH.API.KEY") as url: | |
| data = json.loads(url.read().decode()) | |
| count = 0 | |
| for key, value in data.items(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pexpect | |
| import sys | |
| import time | |
| username = 'admin' | |
| password = 'test' | |
| # works with dlink 1210, 3200, DGS-1510, | |
| # | |
| # |