# Penetration Testing Prerequisites Data Exfiltration lab issue

**URL:** <https://legacy-community.ine.com/t/penetration-testing-prerequisites-data-exfiltration-lab-issue/2977>\
**Category:** Penetration Testing Student (SP)\
**Tags:** red\
**Created:** [October 18, 2022, 7:19pm UTC](https://legacy-community.ine.com/t/penetration-testing-prerequisites-data-exfiltration-lab-issue/2977 "2022-10-18T19:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibaltra12-682e008d55](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@ibaltra12-682e008d55](https://legacy-community.ine.com/u/ibaltra12-682e008d55)\
**Post date:** [October 18, 2022, 7:19pm UTC](https://legacy-community.ine.com/t/penetration-testing-prerequisites-data-exfiltration-lab-issue/2977/1 "2022-10-18T19:19:58Z")

</div>

Hello, I’m currently going through the Data Exiltration lab of the Penetration Testing Prerequisites section.  
I’ve run into a problem while trying to do the lab. I’m supposed to set up a python server and upload a file to this server from a webshell, using curl.  
I’m following the Solution section because of the problem I’ve run into. When I try to upload this file to my python server, I get the following error:

Exception happened during processing of request from (‘192.48.237.3’, 35692)  
Traceback (most recent call last):  
File “/usr/lib/python2.7/SocketServer.py”, line 293, in \_handle\_request\_noblock  
self.process\_request(request, client\_address)  
File “/usr/lib/python2.7/SocketServer.py”, line 321, in process\_request  
self.finish\_request(request, client\_address)  
File “/usr/lib/python2.7/SocketServer.py”, line 334, in finish\_request  
self.RequestHandlerClass(request, client\_address, self)  
File “/usr/lib/python2.7/SocketServer.py”, line 655, in **init**  
self.handle()  
File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle  
self.handle\_one\_request()  
File “/usr/lib/python2.7/BaseHTTPServer.py”, line 328, in handle\_one\_request  
method()  
File “server.py”, line 9, in do\_PUT  
lenght = int(self.headers[‘content-lenght’])  
File “/usr/lib/python2.7/rfc822.py”, line 393, in **getitem**  
return self.dict[name.lower()]  
KeyError: ‘content-lenght’

Nothing I do seems to work. I’ve seen some videos of people going through this same lab, doing everything exactly the same as I am and it works for them.  
Any help would be appreciated. I could just mark the lab as completed, since I already know what I’m supposed to do, but I want to get the flag and know what’s happening.
