Skip to content

Instantly share code, notes, and snippets.

View febnug's full-sized avatar
🎯
Focusing

Febriyanto Nugroho febnug

🎯
Focusing
View GitHub Profile
@febnug
febnug / reverse-proxy-apache2
Created February 16, 2024 23:11
reverse proxy apache2
<VirtualHost *:80>
ProxyRequests Off
ProxyPreserveHost On
ServerName site.name.tls
<Proxy *>
Require all granted
</Proxy>
.section .text
.global bubblesort
bubblesort:
# a0 = long *list
# a1 = size
# t0 = swapped
# t1 = i
1: # do loop
li t0, 0 # swapped = false
li t1, 1 # i = 1
org 100h
mov al,0x13
int 0x10
les bp,[bx]
mov al,11
mov ch,50
x:
jcxz a
;rep stosb
org 100h
;inc cx
mov cx,1
mov bx,tabel
x:
xlatb ; xlatb, ga bisa increment langsung di register al buat ambil nilai di tabel ke index selanjutnya
; jadi, increment dulu di register lain, contoh cx, nanti pindahin lagi ke register al
mov ax,cx
org 100h
mov al,12h
int 10h
;mov ax,0001h
xchg si,ax
xchg ah,al
int 33h
@febnug
febnug / transgender.asm
Created April 26, 2022 01:14
a transgender flag
org 100h
mov al,0x13
int 0x10
les bp,[bx]
mov al,11
mov ch,50
rep stosb
mov al,13
mov ch,50
@febnug
febnug / lol.asm
Created April 18, 2022 12:49
wut?
org 100h
xchg bp,ax
imul ax,[bp+si+400],50*10
sub ax,14
int 29h
ret
@febnug
febnug / x.asm
Last active April 14, 2022 00:07
let's RE this stuff
org 0x100
xchg bp,ax
imul dx,[bp+si+101],58*457 ; maybe playing with that value
inc di
outsb
add sp,[si]
mov dx,si
int 33
xchg bx,ax
mov es,[si]
lodsb
int 0x10
adc ax,[bx+si] ; dw 0x13