Facebook
From Pauliño, 3 Years ago, written in Plain Text.
This paste is a reply to Re: Re: cookie +ipsec+wireshark from Pauliño - view diff
Embed
Download Paste or View Raw
Hits: 129
  1. https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
  2.  
  3.  
  4. https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
  5.  
  6.  
  7. wireshark
  8. yum install gcc gcc-c++ bison flex libpcap-devel qt-devel gtk3-devel rpm-build libtool c-ares-devel qt5-qtbase-devel qt5-qtmultimedia-devel qt5-linguist desktop-
  9. file-utils -y
  10.  
  11.  
  12.  
  13. <!DOCTYPE html>  
  14. <html>  
  15. <head>  
  16. </head>  
  17. <body>  
  18.         <select id="color" onchange="display()">  
  19.                 <option value="Select Color">Select Color</option>  
  20.                 <option value="yellow">Yellow</option>  
  21.                 <option value="green">Green</option>  
  22.                 <option value="red">Red</option>  
  23.             </select>  
  24.             <script type="text/javascript">  
  25.                 function display()  
  26.                 {  
  27.                     var value = document.getElementById("color").value;  
  28.                     if (value != "Select Color")  
  29.                     {  
  30.                         document.bgColor = value;  
  31.                         document.cookie = "color=" + value;  
  32.                     }  
  33.                 }  
  34.                 window.onload = function ()  
  35.                 {  
  36.                     if (document.cookie.length != 0)  
  37.                     {  
  38.                         var array = document.cookie.split("=");  
  39.                         document.getElementById("color").value = array[1];  
  40.                         document.bgColor = array[1];  
  41.                     }  
  42.                 }  
  43.              
  44.                  
  45.             </script>  
  46. </body>  
  47. </html>
  48.  
  49.  
  50.  
  51. Header always edit Set-Cookie "(?i)^((?:(?!;\s?HttpOnly).)+)$" "$1; HttpOnly"
  52. Header always edit Set-Cookie "(?i)^((?:(?!;\s?secure).)+)$" "$1; secure"
  53.  
  54.  ULTIMO INTENTOOOOOOOOOOOOOOOOOO
  55.  
  56. # Identifies SessiondIDs without HTTPOnly flag and sets the "http_cookie" ENV
  57. # Token for Apache to read
  58. SecRule RESPONSE_HEADERS:/Set-Cookie2?/ "!(?i:\;? ?httponly;?)" "id:300001,chain,phase:3,t:none,pass,nolog"
  59. SecRule MATCHED_VAR "(?i:(j?sessionid|(php)?sessid|(asp|jserv|jw)?session[-_]?(id)?|cf(id|token)|sid))" "t:none,setenv:http_cookie=%{matched_var}"
  60.  
  61. # Now we use the Apache Header directive to set the new data
  62. Header set Set-Cookie "%{http_cookie}e; HTTPOnly" env=http_cookie
  63.  
  64.  
  65.  

Replies to Re: Re: Re: cookie +ipsec+wireshark rss

Title Name Language When
Re: Re: Re: Re: cookie +ipsec+wireshark Pauliño text 3 Years ago.