Here's a bash script for you:
#!/bin/sh # destruct structname # output the NASM code for a C struct curl "https://ctrl-c.club/~scotchsour/destruct.php?name=$1"
See Also:
Linux Syscalls for Assembly Programmers (x86_64)