TL;DR: load global variables into local ones before use.
I've spotted a quite widespread misuse of global pointer variables. The issue is easily demonstrated by the following simplified example.
struct some_type_t {
int a1;
int a2;
""" | |
GitHub API v3 Wrapper | |
Ref: https://developer.github.com/v3/git/ | |
""" | |
import base64 | |
import json | |
import requests |
#include <stdio.h> | |
#include <malloc.h> | |
#include <math.h> | |
#include <stdlib.h> | |
// | |
// Generic N-layer neuron network code (using unipolar sigmoid activation function) | |
// | |
// Data type to operate on; typically double. |
MS16-005 (CVE-2016-0009) Win32k Remote Code Execution Vulnerability info | |
just look at PFTOBJ::bUnloadAllButPermanentFonts |
<?xml version="1.0"?> | |
<root xmlns="urn:schemas-upnp-org:device-1-0"> | |
<specVersion> | |
<major>1</major> | |
<minor>0</minor> | |
</specVersion> | |
<URLBase>http://172.16.90.254:49152</URLBase> | |
<device> | |
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType> | |
<friendlyName>Cisco VPN Router</friendlyName> |
#!/usr/bin/python | |
"""Utility functions to work with character patterns.""" | |
__lower_alpha = 'abcdefghijklmnopqrstuvwxyz' | |
__upper_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
__numeric = '0123456789' | |
def pattern_create(length, charsets=None): | |
"""Generates a unique, nonrepeating pattern of a given length. |
""" | |
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator. | |
Work based on: http://1337day.com/exploit/16687 | |
""" | |
import sys |
//-------------------------------------- | |
//--- 010 Editor v6.0 Binary Template | |
// | |
// File: ff4save.bt | |
// Author: DJ | |
// Revision: 1 | |
// Purpose: Parse FF4 save slot. | |
//-------------------------------------- | |
local int doSteam = -1; |
// | |
// copyright (c) 2014 by [email protected] | |
//______________________________________________________________________________ | |
// | |
`timescale 1ns / 1ns | |
module vm80a | |
( | |
input pin_clk, // global module clock (no in original 8080) | |
input pin_f1, // clock phase 1 (used as clock enable) |
# | |
# BUGS: | |
# | |
# * Data is not handled at all. | |
# | |
# * Imports which are either IMPORT_NAME_NOPREFIX or IMPORT_NAME_UNDECORATE | |
# should be properly restored -- make a huge map?.. | |
# | |
import idaapi |