commit
ef0ce1c10d
|
@ -65,9 +65,9 @@ module ReverseHttp
|
||||||
# Create a URI that matches a given checksum
|
# Create a URI that matches a given checksum
|
||||||
#
|
#
|
||||||
def generate_uri_checksum(sum)
|
def generate_uri_checksum(sum)
|
||||||
0.upto(1000) do
|
uri = Rex::Text.rand_text_alphanumeric(3)
|
||||||
uri = Rex::Text.rand_text_alphanumeric(4)
|
("a".."z").sort_by {rand}.each do |x|
|
||||||
return uri if Rex::Text.checksum8(uri) == sum
|
return(uri + x) if Rex::Text.checksum8(uri + x)
|
||||||
end
|
end
|
||||||
raise RuntimeError, "Unable to generate a string with checksum #{sum}"
|
raise RuntimeError, "Unable to generate a string with checksum #{sum}"
|
||||||
end
|
end
|
||||||
|
|
|
@ -61,18 +61,18 @@ module ReverseHttps
|
||||||
|
|
||||||
uri_match
|
uri_match
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create a URI that matches a given checksum
|
# Create a URI that matches a given checksum
|
||||||
#
|
#
|
||||||
def generate_uri_checksum(sum)
|
def generate_uri_checksum(sum)
|
||||||
0.upto(1000) do
|
uri = Rex::Text.rand_text_alphanumeric(3)
|
||||||
uri = Rex::Text.rand_text_alphanumeric(4)
|
("a".."z").sort_by {rand}.each do |x|
|
||||||
return uri if Rex::Text.checksum8(uri) == sum
|
return(uri + x) if Rex::Text.checksum8(uri + x)
|
||||||
end
|
end
|
||||||
raise RuntimeError, "Unable to generate a string with checksum #{sum}"
|
raise RuntimeError, "Unable to generate a string with checksum #{sum}"
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Initializes the HTTP SSL tunneling handler.
|
# Initializes the HTTP SSL tunneling handler.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue