Skip to content

Commit 7d2a2a8

Browse files
committed
Fix issues with using hop for new core
1 parent bd40d02 commit 7d2a2a8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

data/php/hop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function findSendDelete($tempdir, $prefix, $one=true){
4545
//get data
4646
$postdata = file_get_contents("php://input");
4747
//See if we should send anything down
48-
if($postdata === 'RECV'){
48+
if($postdata === "RECV\x00"){
4949
findSendDelete($tempdir, "down_" . bin2hex($url));
5050
$fname = $tempdir . "/up_recv_" . bin2hex($url); //Only keep one RECV poll
5151
}else{

lib/msf/core/handler/reverse_hop_http.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ def self.general_handler_type
5454
"tunnel"
5555
end
5656

57+
#
58+
# Returns the socket type. (hop)
59+
#
60+
def type?
61+
return 'hop'
62+
end
63+
5764
#
5865
# Sets up a handler. Doesn't do much since it's all in start_handler.
5966
#

0 commit comments

Comments
 (0)