1 C[ | ]

C
Copy
#include <stdio.h>
#include <stdlib.h>
int main () {
system("grep 8080 /etc/services");
// http-alt 8080/tcp
// http-alt 8080/udp
}
2 PHP[ | ]

PHP
Copy
passthru('grep https /etc/services');
# https 443/tcp # http protocol over TLS/SSL
# https 443/udp
3 Python[ | ]

PHP
Copy
import os
os.system('grep www-http /etc/services')
# https 443/tcp # http protocol over TLS/SSL
# https 443/udp
4 R[ | ]

R
Copy
system("grep 8080 /etc/services")
# http-alt 8080/tcp
# http-alt 8080/udp