Post Reply

[XAP] [Source] [Mango] Webserver

3rd November 2011, 09:47 PM   |  #1  
fiinix's Avatar
OP Retired Recognized Developer
Flag Stockholm
Thanks Meter: 224
 
568 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Webserver (for Mango)

Webserver is now supported for Mango devices!

During NoDo this tool was used much for exploring the "\Windows" directory, but when Mango came none could explore it.
There is probably many new things to find in the new OEM Mangos (that could not be extracted till now (Exception's: ROM dumps))

Source code is available in attachment and should build without any problems (except for the dll reference)
- Follow stem 6 for Microsoft.Phone.InteropServices.dll errors


Install XAP => Navigate to the phone's IP shown in application => Browse and enjoy.
- Change password on first launch (its randomized)


Many thanks to davux for creating the base for this tool.
- Orginal NoDo thread Here


Changelog:
v0.1 - Initial Mango version release
v0.2 (iconizer)
- Thanks MarysFetus aka Suicide Clown for the great icon set and start screen, love em
- Many thanks to GoodDayToDie for informing me that this app can / and will run from now without the <"ID_CAP_INTEROPSERVICES">
- Removed old OEM dll's that where not used (xap size: 812 KB => 250 KB)

//fiinix
Attached Thumbnails
Click image for larger version

Name:	Screen Capture (Mango).jpg
Views:	2611
Size:	54.7 KB
ID:	770742  
Attached Files
File Type: rar CSharp - Webserver v0.1.rar - [Click for QR Code] (2.63 MB, 1596 views)
File Type: xap WebServer v0.1.xap - [Click for QR Code] (812.3 KB, 829 views)
File Type: xap WebServer v0.2.xap - [Click for QR Code] (253.7 KB, 1964 views)
Last edited by fiinix; 6th November 2011 at 01:23 PM.
The Following 17 Users Say Thank You to fiinix For This Useful Post: [ View ]
3rd November 2011, 10:16 PM   |  #2  
poloche's Avatar
Senior Member
Thanks Meter: 182
 
368 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Nice works my friends... I Like It
Thankx
3rd November 2011, 10:56 PM   |  #3  
contable's Avatar
Senior Member
Thanks Meter: 953
 
1,690 posts
Join Date:Joined: Oct 2009
Donate to Me
@fiinix:

Thx for porting the webserver to Mango !

As I remember the initial version from Davux had an on device execute feature.

Do you plan to implement execute feature ?

Could be very useful for exploring all .exe files in the windows folder.


Greetz

contable
3rd November 2011, 11:24 PM   |  #4  
Recognized Developer
Flag Seattle
Thanks Meter: 2,698
 
5,682 posts
Join Date:Joined: Jan 2011
More
Freaking awesome, man!

One suggestion: I don't believe this app does anything that requires ID_CAP_INTEROPSERVICES (that is, it doesn't need to open any driver handles). I may be mistaken about that, of course. If it doesn't, however, there's a real benefit to removing that capability as people with interop-locked phones could then run it. Note that the library used may try to do things requiring interop even though the app doesn't need it to.

In addition to its uses as a hacker's tool, I also want to point out that this app can be used to store files on the phone for easy transfer between computers. It's less convenient than true USB Mass Storage, but it works (even if you don't have the USB cable with you) so long as there's a WiFi access point that the phone and PC can both connect to.

Oh, and by the way, this app will run happily in the background if you use JaxBot's no-dehydrate hack. You can do other things then, even browsing the webserver from the phone's own browser! Of course, it will also use some resources.
4th November 2011, 11:00 PM   |  #5  
Recognized Developer
Flag Seattle
Thanks Meter: 2,698
 
5,682 posts
Join Date:Joined: Jan 2011
More
Now slimmer, and no ID_CAP_INTEROPSERVICES
OK, this is just a modification of the XAP file - I didn't even recompile the source (thank you so much for including it, though!)

Things I did:
Removed ID_CAP_INTEROPSERVICES from the AppManifest. This will allow the app to be installed on interop-locked phones. It wasn't using it anyhow.
Removed the OEM-specific DLLs that are only useful if you have ID_CAP_INTEROPSERVICES. They weren't being used, but they made the download and install bigger.

Result: A smaller app that works exactly the same and can be installed on any Dev-unlocked Mango phone.
Attached Files
File Type: xap WebServer v0.1_NoInterop.xap - [Click for QR Code] (187.4 KB, 274 views)
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ View ]
4th November 2011, 11:04 PM   |  #6  
KlausWidraw's Avatar
Senior Member
Flag Berlin
Thanks Meter: 85
 
145 posts
Join Date:Joined: Jul 2011
Donate to Me
Lightbulb
Really neat. Mind if I design some sort of decent icon for this app?


Regards, Suicide Clown

//Update:

finished the Icon:



Hope you like it.
Last edited by KlausWidraw; 7th November 2011 at 02:28 PM.
The Following User Says Thank You to KlausWidraw For This Useful Post: [ View ]
4th November 2011, 11:15 PM   |  #7  
fiinix's Avatar
OP Retired Recognized Developer
Flag Stockholm
Thanks Meter: 224
 
568 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by MarysFetus

Really neat. Mind if I design some sort of decent icon for this app?


Regards, Suicide Clown

Sure, go ahead.
Its the freedom of XDA, do what you want :P
5th November 2011, 10:11 AM   |  #8  
Senior Member
Flag Graz
Thanks Meter: 308
 
307 posts
Join Date:Joined: Apr 2011
Donate to Me
More
I added the new NativeIO_Mango.dll to my battery status app instead of the old filesystem.dll. I hope that's okay. Thanks so much for your great libraries.
5th November 2011, 10:54 AM   |  #9  
fiinix's Avatar
OP Retired Recognized Developer
Flag Stockholm
Thanks Meter: 224
 
568 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by singularity0821

I added the new NativeIO_Mango.dll to my battery status app instead of the old filesystem.dll. I hope that's okay. Thanks so much for your great libraries.

The "NativeIO_Mango.dll" is actually a communicator for "Homebrew.csproj" containing COM+ "IWinSock" and "IFileSystem"
- Homebrew.csproj exists in this projects code.

The battery interop will not talk to NativeIO_Mango.dll (the "Webserver" will tho)

Phone.Battery.GetBatteryAdvanced()
-- goto here
---- DllImportCaller.lib.GetSystemPowerStatusExAdv7(ref str, true);

Homebrew.IO.Directory.GetFiles ( [path] )
-- cctor (static constructor) => Register("NativeIO_Mango.dll", "B0E4E41C-BE1D-4BA2-B8CE-7D632EA1CA37");
---- FileSystem.FindFirstFile ( ... ) & while FileSystem.FindNextFile( ... )

:here
Code:
Registrer.Register(BasePath +
#if RUNNS_UNDER_MANGO
 "DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1"
#else
"FileSystem.dll", "F0D5AFD8-DA24-4e85-9335-BEBCADE5B92A"
#endif
);
Filesystem.dll is not used anymore in Mango version (its a NoDo dll)

"Thanks so much for your great libraries."
- Thank you so much
5th November 2011, 11:00 AM   |  #10  
Senior Member
Flag Graz
Thanks Meter: 308
 
307 posts
Join Date:Joined: Apr 2011
Donate to Me
More
I could swear it didn't work without the filesystem.dll one time I tried haha. I guess that was something else

Thanks~

Post Reply Subscribe to Thread

Tags
mango, native, webserver, wp7
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes