Skip to content

Instantly share code, notes, and snippets.

@morozov

morozov/README.md

Last active May 1, 2020
Embed
What would you like to do?
sudo ./sockdump.py --format string --output dump.txt ~/.phpbrew/php/php-7.4.5/var/run/php-fpm.sock
22:35:46.184 >>> process apache2 [303266 -> 49880] len 8(8)
22:35:46.184 >>> process apache2 [303266 -> 49880] len 8(8)
22:35:46.184 >>> process apache2 [303266 -> 49880] len 8(8)
222:35:46.184 >>> process apache2 [303266 -> 49880] len 1586(1586)
REDIRECT_no-gzipREDIRECT_STATUS200no-gzipproxy-nokeepalive1 HTTP_HOSTsugarcrm.localHTTP_ACCEPT_ENCODINGdeflate, gzip, br
HTTP_CONNECTIONkeep-alive .HTTP_ACCEPTapplication/json, text/javascript, */*; q=0.01 HTTP_X_METADATA_HASH1a88ff901873637e518770bf72d6d40aHTTP_DNT1HTTP_X_REQUESTED_WITHXMLHttpRequestiHTTP_USER_AGENTMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 CONTENT_TYPEapplication/json HTTP_REFERERhttp://sugarcrm.local/HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9 HTTP_COOKIEXDEBUG_SESSION=PHPSTORM; PHPSESSID=4b7eb9a1-b6e2-439f-9de5-83ec104a322c; download_token_base=ebc8e621-591c-41ea-965a-7b525b908817 HTTP_IF_NONE_MATCH0f64bd9f75de2c0bcb507a8e93df8bdc<PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binKSERVER_SIGNATURE<address>Apache/2.4.41 (Ubuntu) Server at sugarcrm.local Port 80</address>
SERVER_SOFTWAREApache/2.4.41 (Ubuntu) SERVER_NAMEsugarcrm.local SERVER_ADDR127.0.0.1 SERVER_PORT80 REMOTE_ADDR127.0.0.1 &DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/publicREQUEST_SCHEMEhttpCONTEXT_PREFIX&CONTEXT_DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/public SERVER_ADMIN[no address given]ISCRIPT_FILENAMEproxy:fcgi://localhost/home/morozov/Projects/sugarcrm/public/api/rest.php REMOTE_PORT60704 REDIRECT_URL/rest/v11_8/login/contentREDIRECT_QUERY_STRING__sugar_url=v11_8/login/contentGATEWAY_INTERFACECGI/1.1SERVER_PROTOCOLHTTP/1.1REQUEST_METHODGET QUERY_STRING__sugar_url=v11_8/login/content REQUEST_URI/rest/v11_8/login/content SCRIPT_NAME/api/rest.php22:35:46.184 >>> process apache2 [303266 -> 49880] len 8(8)
22:35:46.184 >>> process apache2 [303266 -> 49880] len 8(8)
22:35:46.343 >>> process php-fpm [49881 -> 303266] len 152(152)
Status: 304 Not Modified
X-Powered-By: PHP/7.3.17
Cache-Control: max-age=0, private
Expires:
Pragma:
Content-Length: 2
 No
22:33:52.445 >>> process apache2 [302943 -> 300953] len 8(8)
22:33:52.446 >>> process apache2 [302943 -> 300953] len 8(8)
22:33:52.446 >>> process apache2 [302943 -> 300953] len 8(8)
222:33:52.446 >>> process apache2 [302943 -> 300953] len 1586(1586)
REDIRECT_no-gzipREDIRECT_STATUS200no-gzipproxy-nokeepalive1 HTTP_HOSTsugarcrm.localHTTP_ACCEPT_ENCODINGdeflate, gzip, br
HTTP_CONNECTIONkeep-alive .HTTP_ACCEPTapplication/json, text/javascript, */*; q=0.01 HTTP_X_METADATA_HASH1a88ff901873637e518770bf72d6d40aHTTP_DNT1HTTP_X_REQUESTED_WITHXMLHttpRequestiHTTP_USER_AGENTMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 CONTENT_TYPEapplication/json HTTP_REFERERhttp://sugarcrm.local/HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9 HTTP_COOKIEXDEBUG_SESSION=PHPSTORM; PHPSESSID=4b7eb9a1-b6e2-439f-9de5-83ec104a322c; download_token_base=ebc8e621-591c-41ea-965a-7b525b908817 HTTP_IF_NONE_MATCH0f64bd9f75de2c0bcb507a8e93df8bdc<PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binKSERVER_SIGNATURE<address>Apache/2.4.41 (Ubuntu) Server at sugarcrm.local Port 80</address>
SERVER_SOFTWAREApache/2.4.41 (Ubuntu) SERVER_NAMEsugarcrm.local SERVER_ADDR127.0.0.1 SERVER_PORT80 REMOTE_ADDR127.0.0.1 &DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/publicREQUEST_SCHEMEhttpCONTEXT_PREFIX&CONTEXT_DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/public SERVER_ADMIN[no address given]ISCRIPT_FILENAMEproxy:fcgi://localhost/home/morozov/Projects/sugarcrm/public/api/rest.php REMOTE_PORT60608 REDIRECT_URL/rest/v11_8/login/contentREDIRECT_QUERY_STRING__sugar_url=v11_8/login/contentGATEWAY_INTERFACECGI/1.1SERVER_PROTOCOLHTTP/1.1REQUEST_METHODGET QUERY_STRING__sugar_url=v11_8/login/content REQUEST_URI/rest/v11_8/login/content SCRIPT_NAME/api/rest.php22:33:52.446 >>> process apache2 [302943 -> 300953] len 8(8)
22:33:52.446 >>> process apache2 [302943 -> 300953] len 8(8)
22:33:52.777 >>> process php-fpm [300955 -> 302943] len 152(152)
~Status: 304 Not Modified
X-Powered-By: PHP/7.4.1
Cache-Control: max-age=0, private
`L2
PL2
Content-Length: 2

20:47:31.542 >>> process apache2 [73344 -> 125704] len 8(8)
20:47:31.542 >>> process apache2 [73344 -> 125704] len 8(8)
20:47:31.542 >>> process apache2 [73344 -> 125704] len 8(8)
220:47:31.542 >>> process apache2 [73344 -> 125704] len 1586(1586)
REDIRECT_no-gzipREDIRECT_STATUS200no-gzipproxy-nokeepalive1 HTTP_HOSTsugarcrm.localHTTP_ACCEPT_ENCODINGdeflate, gzip, br
HTTP_CONNECTIONkeep-alive .HTTP_ACCEPTapplication/json, text/javascript, */*; q=0.01 HTTP_X_METADATA_HASH1a88ff901873637e518770bf72d6d40aHTTP_DNT1HTTP_X_REQUESTED_WITHXMLHttpRequestiHTTP_USER_AGENTMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36 CONTENT_TYPEapplication/json HTTP_REFERERhttp://sugarcrm.local/HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9 HTTP_COOKIEXDEBUG_SESSION=PHPSTORM; PHPSESSID=4b7eb9a1-b6e2-439f-9de5-83ec104a322c; download_token_base=ebc8e621-591c-41ea-965a-7b525b908817 HTTP_IF_NONE_MATCH0f64bd9f75de2c0bcb507a8e93df8bdc<PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binKSERVER_SIGNATURE<address>Apache/2.4.41 (Ubuntu) Server at sugarcrm.local Port 80</address>
SERVER_SOFTWAREApache/2.4.41 (Ubuntu) SERVER_NAMEsugarcrm.local SERVER_ADDR127.0.0.1 SERVER_PORT80 REMOTE_ADDR127.0.0.1 &DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/publicREQUEST_SCHEMEhttpCONTEXT_PREFIX&CONTEXT_DOCUMENT_ROOT/home/morozov/Projects/sugarcrm/public SERVER_ADMIN[no address given]ISCRIPT_FILENAMEproxy:fcgi://localhost/home/morozov/Projects/sugarcrm/public/api/rest.php REMOTE_PORT55122 REDIRECT_URL/rest/v11_8/login/contentREDIRECT_QUERY_STRING__sugar_url=v11_8/login/contentGATEWAY_INTERFACECGI/1.1SERVER_PROTOCOLHTTP/1.1REQUEST_METHODGET QUERY_STRING__sugar_url=v11_8/login/content REQUEST_URI/rest/v11_8/login/content SCRIPT_NAME/api/rest.php20:47:31.542 >>> process apache2 [73344 -> 125704] len 8(8)
20:47:31.542 >>> process apache2 [73344 -> 125704] len 8(8)
20:47:31.786 >>> process php-fpm [125706 -> 73344] len 152(152)
~Status: 304 Not Modified
X-Powered-By: PHP/7.4.5
Cache-Control: max-age=0, private
j
Pragma:
Content-Length: 2
ort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.