This file contains hidden or 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 python | |
# collect attachments from messages identified by label and date | |
# taken from Gmail API Python Quickstart | |
from __future__ import print_function | |
import httplib2 | |
import os | |
import sys |
This file contains hidden or 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
#include <windows.h> | |
#include <fstream> // Required to output logs to files | |
#include <iomanip> // Required to display the hex properly | |
#include "detours.h" // Version 3.0 use for this hook. Be sure to include the library and includes to your project in visual studio | |
// Detours: https://www.microsoft.com/en-us/research/project/detours/ | |
#pragma comment(lib,"detours.lib") // Need to include this so we can use Detours | |
#pragma comment(lib,"ws2_32.lib") // Required to hook Send and Recv since they both reside in this library |
This file contains hidden or 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
const { connect } = require('./socket'); | |
async function asyncSocket() { | |
let socket; | |
try { | |
socket = await connect('localhost', 3000, 30); | |
await socket.write('ping'); |
OlderNewer