MCPcopy Create free account
hub / github.com/longld/peda / zsc

Method zsc

lib/shellcode.py:370–384  ·  view source on GitHub ↗
(self,os,job,encode)

Source from the content-addressed store, hash-verified

368 return data
369 #OWASP ZSC API Z3r0D4y.Com
370 def zsc(self,os,job,encode):
371 try:
372 msg('Connection to OWASP ZSC API api.z3r0d4y.com')
373 params = urlencode({
374 'api_name': 'zsc',
375 'os': os,
376 'job': job,
377 'encode': encode})
378 shellcode = urlopen("http://api.z3r0d4y.com/index.py?%s\n"%(str(params))).read()
379 if pyversion == 3:
380 shellcode = str(shellcode,encoding='ascii')
381 return '\n"'+shellcode.replace('\n','')+'"\n'
382 except:
383 error_msg("Error while connecting to api.z3r0d4y.com ...")
384 return None

Callers 1

shellcodeMethod · 0.80

Calls 1

error_msgFunction · 0.90

Tested by

no test coverage detected