Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

UNCLASSIFIED//FOUO
rewrite_x86_en-US.msi
Once the UrlRewriter is installed, bring up IIS and view the site that you want to
update with this new feature. The UrlRewriter creates a tool in the IIS section of the
web site called “URL Rewrite”. If you see this icon, you have installed the required
components. You can double click the icon and create a proxy component. (e.g.
http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis)
Alternately, simply create a file called web.config in the default web site location.
On my box, this directory is “C:\inetpub\wwwroot”. The following configuration will
intercept any url request with the name “lp” in the name and redirect it to
127.0.0.1:5000. The name lpcan be thought of as a virtual directory in the IIS
directory tree and everything after the word “lp” is copied to the new address that
proxies the SSL request from HTTPS to HTTP on a different port and/or machine.
C:\inetpub\wwwroot\web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" patternSyntax="Wildcard"
stopProcessing="true">
<match url="octopus/*" />
<action type="Rewrite" url="http://127.0.0.1:5000/{R:1}"
logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Now that IIS is configured properly, you need to setup and run the lp web service.
There is no change between lp on Linux and Windows. You still need to configure an
input and output directory. It may be easiest to create a batch file to configure the
server. The following command uses an input and output directory on d:\lp and calls
the python code from the code tree. The port option of 5000 is selectable but must
be that same as the port specified in IIS (see above).
Sample Batch File/Command Line
python D:\Development\athena\console\listeningpost\server.py -i d:\lp\input -o
d:\lp\output -I 0.0.0.0 -p 5000 -s –debug
UNCLASSIFIED//FOUO

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh