This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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={} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |