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
"""A parser for boolean search expressions. | |
This parser understands three types of tokens: | |
1. AND <expression> <expression> | |
2. OR <expression> <expression> | |
3. <string> | |
All strings must be encapsulated in double quotes. The parser converts the | |
search expression into a set of lists containing all possible combinations of |
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
"""An exploit for Apache James 2.3.2 that executes remote commands. | |
This script creates a new user and enqueues a payload to be executed the next | |
time a user logs in to the machine. The vulnerability is documented in | |
CVE-2015-7611. | |
For more details, see http://www.securityfocus.com/bid/76933 and | |
https://www.exploit-db.com/exploits/35513/. | |
""" |
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
/** | |
* An Arduino program that listens for messages on an RF radio and prints them | |
* on the serial console. | |
*/ | |
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
/** |
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
/** | |
* An Arduino program that reads a value from a temperature sensor, transmits it | |
* over an RF radio, and then enters a low-power sleep until repeating the | |
* process. | |
*/ | |
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <LowPower.h> |
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
GetVisitorsParameters params = new GetVisitorsParameters(siteToken); | |
int offset = 0; | |
while (true) { | |
Visitor[] visitors = service.getVisitors(params); | |
if (visitors.length == 0) | |
break; | |
for (Visitor visitor : visitors) { | |
if (!visitor.isLead()) |
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
Site[] sites = service.getSites(); | |
for (Site site : sites) { | |
System.out.println("Name: " + site.getName() + "\nToken: " + site.getSiteToken() + "\nURL: " + site.getUrl()); | |
} |
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
OptifyService service = new OptifyServiceImpl(accessToken); |