Skip to content

Instantly share code, notes, and snippets.

View 1Firsts's full-sized avatar
💭
Tap to Chat!

Achmad Imannudin 1Firsts

💭
Tap to Chat!
View GitHub Profile
@resarahadian
resarahadian / Balok.java
Created November 11, 2012 15:49
Menghitung Bangun Ruang dengan Java
/*
* @ author Resa C.R
* This program can modify and share
*/
public class Balok extends PersegiPanjang //konsep inheritance java
{
private int tinggi;
public void setTinggi(int tinggi)
@erberg
erberg / HTML - Starter Template
Created May 21, 2013 19:09
HTML Starter Template
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
@nstarke
nstarke / 0000-cve-2020-8597.md
Last active November 1, 2023 04:48
CVE-2020-8597 - Buffer Overflow in pppd

CVE-2020-8597 - Buffer Overflow in pppd

In this short tutorial we will go over how to reproduce the crash from CVE-2020-8597. This is a stack-based buffer overflow in the pppd binary.

We will use our own pppd binary compiled from source, using the latest version: 2.4.8.

To accomplish this goal, we will need two Virtual Machines connected by a virtual serial port. I typically use VirtualBox since it is open source, but the same sort of configuration should work on other hypervisors.

I spun up two VMs:

use borsh::{BorshDeserialize, BorshSerialize};
use std::collections::HashMap;
use std::convert::TryInto;
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint,
entrypoint::ProgramResult,
msg,
program_error::ProgramError,