This file contains 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
// Full article published here: | |
// http://dezoito.github.io/2020/05/16/node-asynchronous-list-searches-with-bing-api.html | |
// Bing Search Configs | |
const CognitiveServicesCredentials = require('ms-rest-azure').CognitiveServicesCredentials; | |
const WebSearchAPIClient = require('azure-cognitiveservices-websearch'); | |
const BING_SEARCH_API_KEY = '<<your_subscription_key_here>>'; | |
// aux: generates pseudorandom numbers within a range | |
const randomIntFromInterval = (min, max) => { // min and max included |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Parse scan.io archive to find specific HTTP responses. | |
Will save positive hits to <timestamp>/<ip>.log | |
Usage: | |
$ parse-scans.io.py https://scans.io/data/rapid7/sonar.http/20151110-http.gz |
This file contains 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
// Assuming you already have NodeJS, npm and gulp installed | |
// and followed instructions at: | |
// https://www.browsersync.io/docs/gulp/ | |
// | |
// save this file at <<DJANGO PROJECT ROOT>> | |
// on your terminal: | |
// $ cd <<DJANGO PROJECT ROOT>> | |
// $ gulp | |
// this will open a browser window with your project |