This repository has been archived on 2025-01-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-11-06 13:51:51 +03:00
|
|
|
format ELF
|
|
|
|
|
public _start
|
|
|
|
|
|
|
|
|
|
extrn network.IP_to_str
|
|
|
|
|
extrn network.get_ip
|
|
|
|
|
extrn dnstoys.myip
|
|
|
|
|
extrn print.str
|
|
|
|
|
extrn print.nl
|
|
|
|
|
extrn exit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
section '.strtab'
|
|
|
|
|
hostname db "google.com", 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
section '.text' executable
|
|
|
|
|
_start:
|
2022-11-06 18:21:21 +03:00
|
|
|
call dnstoys.myip
|
|
|
|
|
call print.str
|
|
|
|
|
call print.nl
|
2022-11-06 13:51:51 +03:00
|
|
|
|
2022-11-06 18:21:21 +03:00
|
|
|
push hostname
|
|
|
|
|
call network.get_ip
|
|
|
|
|
call network.IP_to_str
|
|
|
|
|
call print.str
|
|
|
|
|
call print.nl
|
2022-11-06 13:51:51 +03:00
|
|
|
|
2022-11-06 18:21:21 +03:00
|
|
|
call exit
|