Skip to content

Instantly share code, notes, and snippets.

James Jeffery JamesTheHacker

Block or report user

Report or block JamesTheHacker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View step3.c
#include <stdio.h>
#include <Windows.h>
* Small utility function to print the values from MEMORY_BASIC_INFORMATION64 struct
void PrintMemoryBasicInformation64(MEMORY_BASIC_INFORMATION64 *mbi)
printf("Base Address: %p\n", mbi->BaseAddress);
printf("Allocation Base Address: %p\n", mbi->AllocationBase);
View step2.c
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv)
int pid = 10964;
DWORD_PTR addr = 0x7FF7BD730000;
* Get a handle for process with specific process id
View step1.c
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv)
int pid = 10964;
DWORD_PTR addr = 0x7FF7BD730000;
return 0;
JamesTheHacker / keywords.php
Created Oct 28, 2018
Scraping Google Suggestions with PHP
View keywords.php
* This script was created by James Jeffery for use in the following video:
* This script is completely free - as in free beer :)
if (!isset($argv[1]) || empty($argv[1])) {
exit ("You must provide a keyword");
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { library, dom } from '@fortawesome/fontawesome-svg-core'
import { faSnapchat } from "@fortawesome/free-brands-svg-icons"
import {
View IconInput.js
import React from 'react'
export default ({
}) => (
<div className="field">
<label className="label">{label}</label>
View UserController.php
namespace API\Controllers;
use Respect\Validation\Exceptions\NestedValidationException;
class User {
protected $userRepository;
protected $logger;
View gist:fe00c5e7c86aa1e64572b3052caf19f1
$container['errorHandler'] = function ($c) {
return function ($request, $response, $exception) use ($c) {
$c->logger->error('Application Error:', [$exception]);
return $c['response']
->withHeader('Content-Type', 'application/json')
'success' => false,
'error' => "Nope, that didn't work. Try again."
View a.php
public function add($request, $response, $args) {
$user = $request->getParsedBody();
if(!$user) {
throw new \Exception('Failed to add user: $user is null');
$validator = \API\Validators\UserRegistration::validate();
$this->logger->info('User:', [$user]);
View boop.js
import moment from 'moment'
import validate from 'validate.js'
import constraints from './validation'
import formDataJSON from 'formdata-json'
import { appendError, removeError } from '../bulma-form-error'
import addUser from './addUser'
import bulmaFatalError from '../bulma-fatal'
validate.extend(validate.validators.datetime, {
You can’t perform that action at this time.