Ready to Start Your Career?

Weidman Penetration Test Book Error At Http://localhost/bookservice/ - Win 7

Author's profile image

January 1, 2016

Hello, everyone! I am currently working through Georgia Weidman's book Penetration Testing - A Hands-On Introduction to Hacking. I have run into some small issues with the book being a few years old, but have been able to google/forum/puzzle them out thus far. I have hit a wall on this however and could use a hand. I loaded Windows 7 32bit into VM Workstation Pro 12 and updated to SP1. I followed every direction in the book exactly as written, though I did have to enable IIS in Windows Services (Control Panel - Add Programs - Windows Programs) to get it to work correctly. When I try to load https://localhost/bookservice/ in my browser I get the error below. > HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070021 Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". Config File \\\\?\\c:\\inetpub\\wwwroot\\Book\\web.config Requested URL http://localhost:80/bookservice/ Physical Path c:\\inetpub\\wwwroot\\Book\\ Logon Method Not yet determined Logon User Not yet determined Config Source 103: 104: 105: I have tried setting the permissions on the entire inetpub folder to Full Control, I have dug around the web.config file looking for anything set to "Deny", no luck. I have completely reinstalled Windows 7 just in case something weird happened in the original install. I'm new to all this and really don't know what else to try. If you guys have any ideas I would really appreciate the input. Thanks! Rob Did you ever resolve this? I'm getting the same issue. M It's telling you the error right there. Have you ever tried googling it? The web.config appears to be using a setting that differs than the root of your IIS server. Change your managed pipeline from integrated to classic, and you might get better results. Any time you have multiple sources telling a site how to behave, and those sources are in conflict with each other, it will break that IIS site. For anybody that comes across this issue, it appears that the first IIS script may not enable IIS or the needed features depending upon the version you are using. I'm using Win 7 Home Premium 32-bit in VMWare Workstation Pro 12 for a reference point. I enabled IIS as the OP did manually through the control panel prior to installing any other BookApp files (I went through the .bat file to enable the right services), though I still got the 500.19 error. After this, I went back into the control panel -> turn on windows features -> IIS -> World Wide Web Services -> Application Development Features -> and enabled everything under Application Development Features (.NET Extensibilty, ASP, ASP.NET, CGI, ISAPI Extensions, ISAPI Filters, and Server-Side Includes). localhost/bookservice then worked properly after that. ,?
Schedule Demo
Build your Cybersecurity or IT Career
Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry