Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

cduke250
Using some phpbb exploits I can run any command on my friends freeBSD server, but there aren't any transfer commands available. One way to get the files is by copying them to the htdocs folder and then downloading them, but that is often not a viable option.

Basically I send a request to the server and the server executes that request and the output is displayed on the webpage.

Ok, so there are some interesting files of type [data] that I want to examine using my computer. Unfortunately I don't have the knowledge required to make this work.

I have tried [cat file], [dd if=file], and [hexdump file] and then I have to copy off the webpage source the output of those commands.

Is there a way I can ouput the binary of a file? Then it would be easy to retrieve the 0's and 1's out of the source and recreate the file on my computer for examining.

Any suggestions or other methods?
myth
Depending, but couldnt you simply zip the files ?

Using gzip / tar / bzip2 ?

Probably have to be abit careful with the gzip because some extensions will actually get ran, ie .html.gz will just be displayed like a html but will be transfered to you zipped....
cduke250
QUOTE(myth @ Jul 7 2005, 10:15 PM)
Depending, but couldnt you simply zip the files ?


I thought so too and tried that already using a variety of options..

The problem is that only the ouput of the command is returned.. and it is returned to a specific portion of the site via the $poster variable.

So there is no object... its only the output that is displayed on the page. So I need a method for creating output that I can then save on my computer as the original file instead of binary or hex or whatever.

NOTE: using nix for this.
w00dy
You should be able to use fopen or fread and output it and mess with the headers to use a content-type like "application/force-download"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.