@cryptoscamdb/web
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "@cryptoscamdb/web", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Keeping track of all current cryptocurrency scams in an open-source database", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -142,3 +142,3 @@ import * as request from 'request'; | ||
/* Retrieve latest VirusTotal report (no API key required) */ | ||
/* Retrieve latest Urlscan report (no API key required) */ | ||
export const getURLScan = (url: string): Promise<URLScanResponse> => { | ||
@@ -145,0 +145,0 @@ return new Promise<URLScanResponse>((resolve, reject) => { |
@@ -104,2 +104,3 @@ import { version } from '../../package.json'; | ||
const urlScan = await getURLScan(hostname); | ||
const domainurl = 'https://cryptoscamdb.org/domain/' + hostname; | ||
let googleSafeBrowsing; | ||
@@ -125,3 +126,4 @@ let virusTotal; | ||
startTime, | ||
dateFormat | ||
dateFormat, | ||
domainurl | ||
}); | ||
@@ -139,3 +141,4 @@ } else if (scamEntry) { | ||
dateFormat, | ||
abuseReport: generateAbuseReport(scamEntry) | ||
abuseReport: generateAbuseReport(scamEntry), | ||
domainurl | ||
}); | ||
@@ -152,3 +155,4 @@ } else { | ||
addresses: [], | ||
startTime | ||
startTime, | ||
domainurl | ||
}); | ||
@@ -155,0 +159,0 @@ } |
@@ -10,4 +10,5 @@ function hideEverything() { | ||
window.addEventListener("load", function() { | ||
$('.ui.button').click(function() { | ||
$.getJSON("/api/check/" + encodeURIComponent($("input").val().toLowerCase().replace('http://','').replace('https://','').replace('www.','').split(/[/?#]/)[0]), function(result) { | ||
$('.search-btn').click(function() { | ||
console.log('button click recorded') | ||
$.getJSON("/api/v1/check/" + encodeURIComponent($("input").val().toLowerCase().replace('http://','').replace('https://','').replace('www.','').split(/[/?#]/)[0]), function(result) { | ||
if (result.result === 'verified') { | ||
@@ -14,0 +15,0 @@ hideEverything(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17341023
314
4777