MCPcopy
hub / github.com/swisskyrepo/PayloadsAllTheThings / HEX_SINGLE

Function HEX_SINGLE

Server Side Request Forgery/Files/ip.py:65–69  ·  view source on GitHub ↗
(NUMBER,ADD0X)

Source from the content-addressed store, hash-verified

63 return int(NUMBER)*(256**STEP)
64
65def HEX_SINGLE(NUMBER,ADD0X):
66 if ADD0X == "yes":
67 return str(hex(int(NUMBER)))
68 else:
69 return str(hex(int(NUMBER))).replace("0x","")
70
71def OCT_SINGLE(NUMBER):
72 return str(oct(int(NUMBER))).replace("o","")

Callers 1

ip.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected