"Crawfish can be substituted with shrimp."
- 2 lbs cleaned Crawfish or Shrimp
- 2 medium onions, chopped
- 1 clove garlic
- 2 stalks of celery
- 1 can rotel tomatoes (mash tomato)
- 1 can cream of onion soup
- 1 tablespoon flour
- cooking oil
# replaces IP addresses with brackets around `.` :: 192[.]168[.]1[.]42 | |
s/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)/\1[.]\2[.]\3[.]\4/g | |
# replaces all http(s) instances with hxxp(s) | |
s/http/hxxp/g |
#!/usr/bin/env python3 | |
from base64 import b64decode | |
from base64 import b64encode | |
import os | |
from Crypto.Cipher import AES | |
from Crypto.Random import get_random_bytes | |
from Crypto.Util.Padding import pad, unpad |
!#/usr/bin/env python | |
from scapy.all import * | |
# Read in pcap file | |
packets = rdpcap("/path/to/packets.pcap") | |
nonstp = [] | |
for pkt in packets: | |
# filter out STP packets | |
if pkt.dst == "01:80:c2:00:00:00": |
!#/usr/bin/env python | |
from scapy.all import * | |
# Read in pcap file | |
packets = rdpcap("/path/to/packets.pcap") | |
nonstp = [] | |
for pkt in packets: | |
# filter out STP packets | |
if pkt.dst == "01:80:c2:00:00:00": |
import requests | |
url = 'https://domain.auth.us-east-1.amazoncognito.com/oauth2/token' | |
payload = { | |
'grant_type': 'client_credentials', | |
'client_id': '<client_id>', | |
'client_secret': '<client_secret>'} | |
res = requests.post(url, data=payload) | |
res.json()['access_token'] |
This gist contains lists of modules available in Python 2.7 3.6 and 3.7 in AWS Lambda.
It also contains the code to run in Lambda to generate these lists. In addition there
is a less_versbose
module in the code that you can call to get a list of the top
level modules installed and the version of those modules (if they contain a version
in the module)
import random | |
import string | |
def rand_string(rrange=25): | |
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(rrange)) | |
def rand_email(): | |
return '{}@{}.{}'.format(rand_string(10), rand_string(7), rand_string(3)) |
import json | |
import urllib | |
import boto3 | |
lam = boto3.client('lambda') | |
def lambda_handler(event, context): | |
payload = {} | |
payload['key1'] = 'key1' | |
payload['key2'] = 'key2' |