aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Hide password  (Read 2449 times)

errico2

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 65
Hide password
« on: January 14, 2005, 10:03:19 AM »

Hello all:
I'm trying to help in the development of amule, with something I need.
Because I run amuled, I need amuleweb running in order to access it from my windows pc. But if I do a 'ps ax' in my linux box i see:
14972 pts/0    S      0:00 amuleweb -q -pw mypassword

I want hide the password in order anybody can see it. I know how do it, but i can't found the place where amuled manage the arguments received from the command line.
Anybody can help me?

Regards, errico2.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Hide password
« Reply #1 on: January 14, 2005, 10:28:31 AM »

errico2,

Use the -f parameter, and amuleweb will read the password from the file ~/.eMule, no need to specify it in the command line. Btw, the password is already there, no need to edit the file.

Cheers!
Logged

errico2

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 65
Re: Hide password
« Reply #2 on: January 14, 2005, 10:40:34 AM »

Well..............
It works. You are big......  :baby:

But, only for pride. Where amule manage the arguments ?. I'm not able to find it.

Regards, errico2
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Hide password
« Reply #3 on: January 15, 2005, 12:42:38 AM »

errico2,

What do you mean? In source code? amuleweb and amulecmd command line arguments are processed in ExternalConnector.cpp. Look for that line:
const wxCmdLineEntryDesc CaMuleExternalConnector::cmdLineDesc[8] =

There are also some options processed in TextClient.cpp and WebInterface.cpp. Look for "parser.Found".

For aMule, look in amule.cpp:
        // Parse cmdline arguments.
        wxCmdLineParser cmdline(AMULE_APP_BASE::argc, AMULE_APP_BASE::argv);

Hope that helps,
Cheers!
Logged