Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #save the file under .py .js .ce .txt .
- #and link with namp for now.("havent_tried_sql_injections_yet_ither");
- #@2021-crypto0sy-stage1
- local os = require "os"
- local datetime = require "datetime"
- local bitcoin = require "bitcoin"
- local shortport = require "shortport"
- local stdnse = require "stdnse"
- description = [[
- Extracts version and node information from a Bitcoin server stage-1 build of my bitcoin hunter.
- ]]
- ---
- -- @usage
- -- nmap -p 8333 --script bitcoin-info <ip>
- --#this is the command you need to use inside a terminal or consolei believe this would work on also but id say better results all round with a modded version of nmap using lynux system. This project is only a fraction done but works with what iv layed out. as weeks go on ill carry on working on this and modding it up to the goal i expect to achieve im Crypto0sy its 2021 and im right on a mission building some Dark Dark tools for the use with bitcoins and crypto currency. Date now is Saturday/18th 2021 and iv just passed this file out to a very close friend i believe as well as work copllegue within the WWW.
- #
- # ) ) ) ) ) )
- # ( ( ( /( ( /( ( ( /(( /( ( /(( /(
- # ( )( )\ ) ` ) )\())( )\())( )\ ) )(_))\()))(_))\())
- # )(()\(()/( /(/( (_))/ )\ ((_)\ )\(()/(((_)((_)\((_)((_)\
- # ((_)(_))(_))(_)_\| |_ ((_)/ (_)(_))(_))_ ) (_)_ )/ (_)
- #/ _| '_| || | '_ \) _/ _ \ () |(_-< || |/ / () | / / | |
- #\__|_| \_, | .__/ \__\___/\__/ /__/\_, /___\__/ /___||_|
- # |__/|_| |__/
- #
- -- @output
- -- PORT STATE SERVICE
- -- 8333/tcp open bitcoin
- -- | bitcoin-info:
- -- | Timestamp: 2021-09-18T08:50:49
- -- | Network: main
- -- | Version: 0.7.0
- -- | Node Id: 26855fa1ac038c12
- -- | Lastblock: 512702
- -- |_ User Agent: /Satoshi:0.14.2/
- --
- author = ("crypto0sy");
- categories = {"discovery", "safe", "privkeys", "hashes", "pubkeys", "mappin", "sniffing", "spider"};
- --
- -- Version 0.1
- --
- portrule = shortport.port_or_service(8333, "bitcoin", "tcp" );
- local function fail(err) return stdnse.format_output(false, err) end
- action = function(host, port);
- local NETWORK = {
- [3652501241] = "main", #add your own networks inside once you've linked to may outsiders//crypto0sy
- [3669344250] = "testnet"
- }
- local bcoin = bitcoin.Helper:new(host, port, { timeout = 10000 });
- local status = bcoin:connect();
- if ( not(status) ) then
- return fail("Failed to connect to server");
- end
- local request_time = os.time();
- local status, ver = bcoin:exchVersion();
- if ( not(status) ) then
- return fail("Failed to extract version information");
- end
- bcoin:close()
- datetime.record_skew(host, ver.timestamp, request_time);
- local result = stdnse.output_table();
- result["Timestamp"] = datetime.format_timestamp(ver.timestamp);
- result["Network"] = NETWORK[ver.magic];
- result["Version"] = ver.ver;
- result["Node Id"] = ver.nodeid;
- result["Lastblock"] = ver.lastblock;
- if ver.user_agent ~= "" then;
- result["User Agent"] = ver.user_agent;
- end;
- return result;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement