Forums: Transferring File To Text On Webpage - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Transferring File To Text On Webpage hexdump fie is outputted to webpage

#1 User is offline   cduke250 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 195
  • Joined: 13-October 04

Posted 07 July 2005 - 09:31 AM

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?
[0][tombs@cemetary][~](1:420)
$
lynx http://www.askapache.com/
0

#2 User is offline   myth 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 408
  • Joined: 09-January 04

Posted 07 July 2005 - 02:15 PM

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....
0

#3 User is offline   cduke250 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 195
  • Joined: 13-October 04

Posted 07 July 2005 - 03:31 PM

myth, on Jul 7 2005, 10:15 PM, said:

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.
[0][tombs@cemetary][~](1:420)
$
lynx http://www.askapache.com/
0

#4 User is offline   Jeremy 

  • Commander in Chief
  • Icon
  • Group: Admin
  • Posts: 2,345
  • Joined: 14-May 03

Posted 08 July 2005 - 01:58 AM

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"
Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma � which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.
~Steve Jobs

Jeremy aka w00dy aka foadah
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting