def dotransform(request, response, config): try: btc_add = bitcoin_address(request.fields['address']) for trans in btc_add['transactions']: if request.value == trans['transaction_hash']: for address in trans['addresses']: e = BitcoinAddress(address) e += Field("date", trans['date'], displayname='Date') e += Field("trans_uri", trans['transaction_uri'], displayname='Transaction URI') e += Field("recieved_address", request.fields['address'], displayname='Recieved Address') e += Label("Bitcoin Address", address) e += Label("Bitcoin Recieved Address", request.fields['address']) e += Label("Transaction Type", trans['transaction_type']) e += Label("Transaction Hash", trans['transaction_hash']) e += Label("Transaction Date", trans['date']) response += e else: pass return response except Exception as e: raise MaltegoException('An error occured: %s' % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) for trans in btc_add['transactions']: if 'Received' in trans['transaction_type']: e = BitcoinTransaction(trans['transaction_hash'], trans_type=trans['transaction_type'], amount=trans['transaction_amount'], trans_uri=trans['transaction_uri'], address=request.value) e += Field("date", trans['date'], displayname='Date') e += Label("Bitcoin Address", request.value) e += Label("Total Amount of Transaction", trans['transaction_amount']) e += Label("Transaction Type", trans['transaction_type']) e += Label("Transaction Date", trans['date']) e.linklabel = 'Received' response += e else: pass return response except Exception as e: raise MaltegoException('An error occured: %s' % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) for trans in btc_add["transactions"]: if "Received" in trans["transaction_type"]: e = BitcoinTransaction( trans["transaction_hash"], trans_type=trans["transaction_type"], amount=trans["transaction_amount"], trans_uri=trans["transaction_uri"], address=request.value, ) e += Field("date", trans["date"], displayname="Date") e += Label("Bitcoin Address", request.value) e += Label("Total Amount of Transaction", trans["transaction_amount"]) e += Label("Transaction Type", trans["transaction_type"]) e += Label("Transaction Date", trans["date"]) e.linklabel = "Received" response += e else: pass return response except Exception as e: raise MaltegoException("An error occured: %s" % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) for trans in btc_add['transactions']: if 'Sent' in trans['transaction_type']: e = BitcoinTransaction(trans['transaction_hash'], trans_type = trans['transaction_type'], amount = trans['transaction_amount'], trans_uri = trans['transaction_uri'], address = request.value) e += Field("date", trans['date'], displayname='Date') e += Label("Bitcoin Address", request.value) e += Label("Total Amount of Transaction", trans['transaction_amount']) e += Label("Transaction Type", trans['transaction_type']) e += Label("Transaction Date", trans['date']) e.linklabel = 'Sent' response += e else: pass return response except Exception as e: raise MaltegoException('An error occured: %s' % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) e = BitcoinAmount(btc_add['received_bitcoin_total'], address=request.value) e += Label("Bitcoin Address", request.value) e.linklabel = 'Received' response += e return response except Exception as e: raise MaltegoException('An error occured: %s' % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) e = BitcoinAmount(btc_add['sent_bitcoins'], address = request.value ) e += Label("Bitcoin Address", request.value) e.linklabel = 'Sent' response += e return response except Exception as e: raise MaltegoException('An error occured: %s' % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) e = BitcoinAddress(request.value) e += Label("Short URL", btc_add["short_link"]) e += Label("Date First Seen", btc_add["first_seen_date"]) e += Label("First Seen in Block", btc_add["first_seen_block"]) e += Label("Total Transactions Received", btc_add["received_transactions"]) e += Label("Total Bitcoins Received", btc_add["received_bitcoin_total"]) e += Label("Total Sent Transactions", btc_add["sent_transactions"]) e += Label("Total Bitcoins Sent", btc_add["sent_bitcoins"]) e += Label("Hash", btc_add["hash160"]) e += Label("PublicKey", btc_add["public_key"]) response += e return response except Exception as e: raise MaltegoException("An error occured: %s" % e)
def dotransform(request, response, config): try: btc_add = bitcoin_address(request.value) e = BitcoinAddress(request.value) e += Label("Short URL", btc_add['short_link']) e += Label("Date First Seen", btc_add['first_seen_date']) e += Label("First Seen in Block", btc_add['first_seen_block']) e += Label("Total Transactions Received", btc_add['received_transactions']) e += Label("Total Bitcoins Received", btc_add['received_bitcoin_total']) e += Label("Total Sent Transactions", btc_add['sent_transactions']) e += Label("Total Bitcoins Sent", btc_add['sent_bitcoins']) e += Label("Hash", btc_add['hash160']) e += Label("PublicKey", btc_add['public_key']) response += e return response except Exception as e: raise MaltegoException('An error occured: %s' % e)