Skip to content

Instantly share code, notes, and snippets.

View breadchris's full-sized avatar

Chris breadchris

View GitHub Profile
@breadchris
breadchris / parse.go
Created May 26, 2023 17:54
Protobuf Protoflow Workflow
package grpc
import (
"fmt"
"github.com/jhump/protoreflect/desc"
"google.golang.org/protobuf/types/descriptorpb"
"strings"
"testing"
)
@breadchris
breadchris / esbuild.go
Created May 2, 2023 21:05
Building Javascript from go with esbuild
package editor
import (
"github.com/evanw/esbuild/pkg/api"
"strconv"
"strings"
)
// TODO breadchris this is a WIP, theoretically we could build the editor with esbuild from go
func Build(prodBuild bool) api.BuildResult {
@breadchris
breadchris / protoflow_protobuf.proto
Created May 1, 2023 21:50
Experimental Protobuf definition for all graph data.
syntax = "proto3";
import "google/protobuf/empty.proto";
import "google/protobuf/descriptor.proto";
import "block.proto";
import "resource.proto";
enum ServiceMethods {
ServiceOne_MethodOne = 0;
}
@breadchris
breadchris / ideas.md
Last active February 11, 2023 00:27
Next Gen Vuln Search Page
@breadchris
breadchris / export.html
Created March 3, 2020 07:02
pocket backup
<!DOCTYPE html>
<html>
<!--So long and thanks for all the fish-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pocket Export</title>
</head>
<body>
<h1>Unread</h1>
<ul>
@breadchris
breadchris / results.json
Created January 18, 2023 23:47
CISA Javascript Known Exploited Vulnerabilities
{
"data": {
"vulnerability_cisa_known_exploited": [
{
"vulnerability_name": "MongoDB mongo-express Remote Code Execution Vulnerability",
"vulnerability": [
{
"equivalents": [
{
"equivalent_vulnerability": {
@breadchris
breadchris / results.json
Created January 18, 2023 23:46
CISA Known Exploited Java Vulnerabilities
{
"data": {
"vulnerability_cisa_known_exploited": [
{
"vulnerability_name": "Apache Struts Multiple Versions Remote Code Execution Vulnerability",
"vulnerability": [
{
"equivalents": [
{
"equivalent_vulnerability": {
#15 CACHED
#8 [server-builder 2/7] RUN apk add --no-cache openssl1.1-compat
#8 sha256:df3fdc0ca62a274dbd21816bb058065d8a138d2efb9c9688886267829add0d64
#8 CACHED
#16 [server-production 3/5] COPY server/ ./server/
#16 sha256:dc7c09af1e690b7ebb11a49df39e9a1210ab7b48cd64d1c497d437b76e5db1a7
#16 CACHED

All the ways to loop

Warmup

Follow the directions in the code. Use the Printing out a grocery list code as a template to write your for loop

Printing out a grocery list

  1. Copy this code into your project
  2. Add your own grocery item to the list
  3. Run the code to see if your grocery item gets printed out
@breadchris
breadchris / Delphi.md
Last active May 24, 2021 17:59
Bsides Vancouver CTF 2015 - Delphi (200 ownable) Writeup

Delphi

files given:

  • delphi-07a5c9d07a4c20ae81a2ddc66b9602d0dcceb74b
  • libtwenty.so-4a3918b2efd9fbdfd20eeb8fa51ca76bc42eb2f2

TL;DR

  • Reverse Command Protocol
  • Integer Overflow
  • Metacharacter Injection