Skip to content

Instantly share code, notes, and snippets.

from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
if pkt[ARP].psrc == '0.0.0.0': # ARP Probe
print "ARP Probe from: " + pkt[ARP].hwsrc
print sniff(prn=arp_display, filter="arp", store=0, count=10)
@vamsijakkula
vamsijakkula / hello-blue-whale
Last active October 26, 2019 07:19
hello-blue-whale-deployment.yml
#Hellowhale-Deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-blue-whale
spec:
replicas: 1
selector:
matchLabels:
app: hello-blue-whale-app
@vamsijakkula
vamsijakkula / values.yaml
Created February 23, 2020 09:55
Values Configuration
global:
splunk:
hec:
protocol: https
insecureSSL: true
token: d9b7c03a-4713-47d1-81e6-483fbc371aa7
host: 192.168.1.9
port: 8088
indexName: events
@vamsijakkula
vamsijakkula / pv.yml
Created April 19, 2020 17:23
PersistentVolume
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 1Gi
@vamsijakkula
vamsijakkula / pvc.yml
Created April 19, 2020 17:26
Persistent Volume Claim
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
@vamsijakkula
vamsijakkula / ngnix.yml
Created April 19, 2020 17:31
Nginx Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-deploy
spec:
replicas: 1
selector:
matchLabels:
apiVersion: apps/v1
kind: Deployment
metadata:
name: php-apache
spec:
selector:
matchLabels:
run: php-apache
replicas: 1
template:
@vamsijakkula
vamsijakkula / hpa.yml
Created May 2, 2020 07:14
Horizontal Pod Autoscaler
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: php-memory-scale
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
@vamsijakkula
vamsijakkula / Minio-Dep.yml
Created May 8, 2020 05:24
Minio Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
# This name uniquely identifies the Deployment
name: minio
spec:
selector:
matchLabels:
app: minio # has to match .spec.template.metadata.labels
strategy: