Advertisement
m4ly

FASTCGI

Jun 9th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.90 KB | None | 0 0
  1. /* d. mocek */
  2. char raw_packet[] = {
  3. /**/
  4. 0x01, 0x01, 0x00, 0x64, 0x00, 0x08, 0x00, 0x00,/**/0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
  5. /*                                                             S     C     R     I     P     T    */
  6. 0x01, 0x04, 0x00, 0x64, 0x00, 0x50, 0x00, 0x00,    0x0b, 0x07, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54,
  7. /* _  N     A     M     E     /     s     t        a     t     u     s                 S     C     */
  8. 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x2f, 0x73, 0x74,    0x61, 0x74, 0x75, 0x73, 0x0f, 0x07, 0x53, 0x43,
  9. /**/
  10. 0x52, 0x49, 0x50, 0x54, 0x5f, 0x46, 0x49, 0x4c,    0x45, 0x4e, 0x41, 0x4d, 0x45, 0x2f, 0x73, 0x74,
  11. /**/
  12. 0x61, 0x74, 0x75, 0x73, 0x0e, 0x03, 0x52, 0x45,    0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4d, 0x45,
  13. /**/
  14. 0x54, 0x48, 0x4f, 0x44, 0x47, 0x45, 0x54, 0x0c,    0x03, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x53,
  15. /**/
  16. 0x54, 0x52, 0x49, 0x4e, 0x47, 0x78, 0x6d, 0x6c,    0x01, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
  17. };
  18. FCGI_Header(8):
  19. header.version          =   0x01 (FCGI_VERSION_1)
  20. header.type             =   0x01 (FCGI_BEGIN_REQUEST)
  21. header.requestIdB1      =   0x00 requestID = 100                <=> (100 >> 8) & 0xff = 0
  22. header.requestIdB0      =   0x64 requestID = 100                <=> (100     ) & 0xff = 64
  23. header.contentLengthB1  =   0x00 sizeof(beginRecord.body) = 8   <=> (8 >> 8) & 0xff = 0
  24. header.contentLengthB0  =   0x08 sizeof(beginRecord.body) = 8   <=> (8     ) & 0xff = 8
  25. header.paddingLength    =   0x00 0
  26. header.reserved         =   0x00 0
  27.  
  28. FCGI_BeginRequestBody(8):
  29. body.roleB1             =   0x00 FCGI_RESPONDER                 <=> (FCGI_RESPONDER >> 8) & 0xff = 0
  30. body.roleB0             =   0x01 FCGI_RESPONDER                 <=> (FCGI_RESPONDER     ) & 0xff = 1
  31. body.flags              =   0x01 FCGI_KEEP_CONN
  32. body.reserved           =   0x00 memset(body.reserved, 0, ...)
  33.                             0x00 memset(body.reserved, 0, ...)
  34.                             0x00 memset(body.reserved, 0, ...)
  35.                             0x00 memset(body.reserved, 0, ...)
  36.                             0x00 memset(body.reserved, 0, ...)
  37. 0x01 FCGI_BEGIN_REQUEST
  38. 0x04 FCGI_PARAMS
  39. 0x00
  40. 0x64 requestID
  41. 0x00
  42. 0x50 FCGI_STDIN
  43. 0x00
  44. 0x00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement