gitrecon
Version:
This CLI tool is designed to retrieve exposed email addresses from a GitHub user’s public activity and to identify a GitHub username associated with a given email address. It is intended strictly for educational use and ethical security research. Please u
33 lines (28 loc) • 742 B
JavaScript
// Global variables and settings
let found = [];
let rateLimitInfo = {
remaining: null,
limit: null,
resetTime: null
};
// Factory function to create Repository objects
const Repository = (name, isFork) => ({
name,
isFork,
});
// Function to update HTTP headers
const { HEADER } = require('./constants');
const updateHeader = (updateObj) => {
Object.assign(HEADER, updateObj);
};
module.exports = {
found,
rateLimitInfo,
Repository,
updateHeader,
// Getter/Setter functions
getFound: () => found,
setFound: (newFound) => { found = newFound; },
getRateLimitInfo: () => rateLimitInfo,
setRateLimitInfo: (newInfo) => { rateLimitInfo = newInfo; }
};