如果我没弄错,mysql_query()函数使用TCP协议发送数据。
是否可以重新组合查询tcp数据包,例如通过网络发送 - 并在其他地方重建查询?
我希望下面的图片能更多地解释我的问题。
答案 0 :(得分:0)
Yes, it is. All you need is a monitoring sowtware (like wireshark), computer2 (where you have that software installed) must know the I.P of the source or the destination mysql server and also be able to intercept those packets. (F.instance being in the same wireless connection -or location and monitoring- of the source or destination).
After that, you've got the packets but in order to read them it depends of the settings of the connection between the client and the server. Mysql can establish some kind of compression, in that case you should decompress the packets. Also it could happen that client/server connection follow a SSL protocol, in which case you should decrypt the packets... etc.
Not easy at all, but possible.