Thread: Howto change an url on the DLL?

  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    6

    Howto change an url on the DLL?

    Good evening, I'm not experienced in C+ programing in fact I'm a retired man but a computer lover. I was using the SpanishProvider.dll that fech information from Filmaffinity web but has changed the url from www.mobile.filmaffinity.com/es to www.m.filmaffinity.com/es/main.php , I tried to change it with several programs Visual Studio, Boomerang win32, etc) but for me it's impossible.
    I have not the source because the developper is missing.
    My question is if possible to modify the url on the DLL w/o the source.
    Thanks in advance, every answer will good for me , I'm really desperate.
    Regards
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Maybe you could contact the owners of filmaffinity.com and ask them to add a mapping to their webserver to redirect requests to www.mobile.filmaffinity.com/es to www.m.filmaffinity.com/es/main.php? Assuming what this DLL is doing is legal and permitted by the website, that would be the easiest way to go here.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    6
    Thanks to replay rags_to_riches , 2 weeks ago I contacted with web asking to redirect request but I have not answer from web. Too I tried to modify in the local computer (I'ts a Mediacenter box) to direct the request but neither host file or modifying the ADSL Router it's possible becaus the domain IP it's the same, only has changed the url link.

  4. #4
    Registered User
    Join Date
    Nov 2012
    Posts
    6
    About my question...with Microsoft Visual C I can see the code lines with the old URL that I would need change, but I can't edit it. It's any way to change it or it's more complex because I have not the source?

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I'm not sure how you would use Visual C, or Boomerang, to do what you are talking about. Just use a hex editor. The problem is, the new string seems to be a bit longer than the old one, so you might have to do something weird like create a TinyURL link and then use that instead (since you can't replace the string with something longer than what's already there).
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    My initial thought would be to use a local proxy to redirect www.mobile.filmaffinity.com/es to www.m.filmaffinity.com/es/main.php automatically.

    But this relies on you being able to configure a proxy in your application.

    Some suggested proxies
    HoTTProxy - the Open Source HTTP Proxy
    Privoxy - Home Page
    Acme Consulting -Società di Consulenza e Formazione Informatica - Torino
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Nov 2012
    Posts
    6
    Brewbuck, I thought to myself the way to change the url lines was using the original tool was created (Visual C), but from your answer is not need it (or not useful).
    Will the 1st time using the UltraEdit but I'll it.
    Regards

  8. #8
    Registered User
    Join Date
    Nov 2012
    Posts
    6
    Salem, that was an idea but I discard it because I thought that only works from URL asked from web browser but not from external way as a DLL.
    I'll try it too. Thanks a lot to asnwer

  9. #9
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    FWIW, the DLL appears to be a .NET DLL, which means you could use something like .NET Reflector to decompile it, change the contained strings, and recompile it.

  10. #10
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    The file seems to have exactly four UCS16 strings in it, at decimal offsets
    Code:
    16398: http://api.themoviedb.org/2.1/Movie.search/en/xml/{1}/{0}
    16514: http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/{1}/{0}
    16783: http://mobile.filmaffinity.com/es/search.php?stext={0}&stype=title
    16917: http://mobile.filmaffinity.com/es/moviesynop.php?id={0}
    You could do a simple binary replacement using strings of the exact same length, i.e.
    Code:
    16783: http://m.filmaffinity.com/es/search.php?stext={0}&stype=title&&&&&
    16917: http://m.filmaffinity.com/es/moviesynop.php?id={0}&&&&&
    but while the former seems to work (e.g. http://m.filmaffinity.com/es/movie.php?id=988464&&&&&), the latter does not (e.g. http://m.filmaffinity.com/es/moviesy...id=988464&&&&&).

    In other words, the FilmAffinity site has been modified in a way that almost certainly breaks your library in other ways, too.

  11. #11
    Registered User
    Join Date
    Nov 2012
    Posts
    6
    Thanks Nominal Animal, I thought it could easier but is getting a nightmare for me. Every modfification I do with Hexadecimal editor or .NET Reflector breaks the DLL and not working with the program.
    Finally I throw in the towel.
    Thanks a lot to everybody, you're a great team
    Last edited by diaz; 11-05-2012 at 07:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New thread howto
    By Savita Santos in forum C Programming
    Replies: 1
    Last Post: 01-28-2010, 09:59 AM
  2. Registry HowTo
    By xxxrugby in forum C Programming
    Replies: 2
    Last Post: 04-10-2005, 10:44 AM
  3. Howto Broadcast?
    By Aidman in forum Windows Programming
    Replies: 6
    Last Post: 04-30-2003, 03:15 PM
  4. P2P howto
    By Dimeslime in forum C# Programming
    Replies: 3
    Last Post: 07-10-2002, 08:08 PM
  5. Howto read a bitmap?
    By z33z in forum C++ Programming
    Replies: 3
    Last Post: 12-30-2001, 07:23 PM