Skip to content

Instantly share code, notes, and snippets.

vpc_cidr_block = '10.0.0.0/16'
response = vpc.create_vpc(
CidrBlock=vpc_cidr_block,
AmazonProvidedIpv6CidrBlock=False,
DryRun=False,
InstanceTenancy='default'
)
vpcid = response['Vpc']['VpcId']
vpc.modify_vpc_attribute(
@arvinddoraiswamy
arvinddoraiswamy / ch5.py
Created December 21, 2014 21:54
Flare on challenge 5
import idaapi
import idautils
import sys
import itertools
def rename_functions_ida():
#Get number of segments
seg=idaapi.getnseg(0)
if seg:
#Get list of functions in that segment
@arvinddoraiswamy
arvinddoraiswamy / ch6.py
Created December 21, 2014 07:29
Flare on challenge 6
import collections
import string
import sys
def hextobin(string):
bin_str=''
split_str=list(string)
for i in split_str:
temp1=str(bin(int(i,16))[2:].zfill(4))
@arvinddoraiswamy
arvinddoraiswamy / test_create_article.py
Created May 2, 2012 10:06
Create Article Unit test
import suds
import re
url='http://50.16.28.105:8000/aspx_pages/TM_WebServices.asmx?WSDL'
client = suds.client.Client(url)
d = dict(http='127.0.0.1:8080')
client.set_options(proxy=d)
def create_article():
article = client.factory.create('TeamMentor_Article')
@arvinddoraiswamy
arvinddoraiswamy / authtest_may1.py
Created May 1, 2012 18:39
Authorization Testing - Analysis - First pass
import suds
import re
import sys
import os
#Enter WSDL Url here
url='http://50.16.28.105:8000//aspx_pages/TM_WebServices.asmx?WSDL'
#All Global variables
users={}; datatype_values={}; report={}
@arvinddoraiswamy
arvinddoraiswamy / test_create_folder.py
Created May 1, 2012 11:40
TeamMentor python - Unit test for the CreateFolder Web service method
import suds
import re
url='http://50.16.28.105:8000/aspx_pages/TM_WebServices.asmx?WSDL'
client = suds.client.Client(url)
def create_folder():
guid=client.service.Login('admin','9eff3dbd350bc5ef54fe7143658565bd45b6476db7c511f35206a143287f741d')
match=re.search(r'(\w{8})-\w{4}-\w{4}-\w{4}-\w{12}',guid)