Forum Discussion
KenG
Nimbostratus
May 19, 2017Inject commands on an FTP connection
Does anyone know if it is possible to inject a command into an FTP conversation?
I've trying to work around a bug in the application that is incorrectly asking for a transfer in ascii mode and p...
Anesh
Cirrostratus
May 19, 2017try the below
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
if {[TCP::payload] contains "string after which you want to inject BIN" }
TCP::respond "BIN"
TCP::payload replace 0 [TCP::payload length] ""
TCP::release
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects