0013-shellinabox.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. diff --git a/package/shellinabox/0003-cr-lf-problem-android.patch b/package/shellinabox/0003-cr-lf-problem-android.patch
  2. new file mode 100644
  3. index 0000000000..6c986a33c4
  4. --- /dev/null
  5. +++ b/package/shellinabox/0003-cr-lf-problem-android.patch
  6. @@ -0,0 +1,16 @@
  7. +diff --git a/shellinabox/vt100.jspp b/shellinabox/vt100.jspp
  8. +index fe31cb5..5924871 100755
  9. +--- a/shellinabox/vt100.jspp
  10. ++++ b/shellinabox/vt100.jspp
  11. +@@ -916,8 +916,9 @@ VT100.prototype.initializeElements = function(container) {
  12. + '<div class="hidden">' +
  13. + '<div id="usercss"></div>' +
  14. + '<pre><div><span id="space"></span></div></pre>' +
  15. +- '<input type="text" id="input" autocorrect="off" autocapitalize="off" />' +
  16. +- '<input type="text" id="cliphelper" />' +
  17. ++ '<input type="text" id="input" autocorrect="off" autocapitalize="off" ' +
  18. ++ 'autocomplete="off" spellcheck="false" />' +
  19. ++ '<input type="text" id="cliphelper" tabindex="-1" />' +
  20. + (typeof suppressAllAudio != 'undefined' &&
  21. + suppressAllAudio ? "" :
  22. + embed + '<bgsound id="beep_bgsound" loop=1 />') +
  23. diff --git a/package/shellinabox/0004-remove-some-auth-modules-from-ssh.patch b/package/shellinabox/0004-remove-some-auth-modules-from-ssh.patch
  24. new file mode 100644
  25. index 0000000000..39cd922f69
  26. --- /dev/null
  27. +++ b/package/shellinabox/0004-remove-some-auth-modules-from-ssh.patch
  28. @@ -0,0 +1,20 @@
  29. +diff --git a/shellinabox/service.c b/shellinabox/service.c
  30. +index cdf946e..f1609f8 100644
  31. +--- a/shellinabox/service.c
  32. ++++ b/shellinabox/service.c
  33. +@@ -171,12 +171,12 @@ void initService(struct Service *service, const char *arg) {
  34. + service->cmdline = stringPrintf(NULL,
  35. + "ssh -a -e none -i /dev/null -x -oChallengeResponseAuthentication=no "
  36. + "-oCheckHostIP=no -oClearAllForwardings=yes -oCompression=no "
  37. +- "-oControlMaster=no -oGSSAPIAuthentication=no "
  38. ++ "-oControlMaster=no "
  39. + "-oHostbasedAuthentication=no -oIdentitiesOnly=yes "
  40. + "-oKbdInteractiveAuthentication=yes -oPasswordAuthentication=yes "
  41. + "-oPreferredAuthentications=keyboard-interactive,password "
  42. +- "-oPubkeyAuthentication=no -oRhostsRSAAuthentication=no "
  43. +- "-oRSAAuthentication=no -oStrictHostKeyChecking=no -oTunnel=no "
  44. ++ "-oPubkeyAuthentication=no "
  45. ++ "-oStrictHostKeyChecking=no -oTunnel=no "
  46. + "-oUserKnownHostsFile=/dev/null -oVerifyHostKeyDNS=no "
  47. + // beewoolie-2012.03.30: while it would be nice to disable this
  48. + // feature, we cannot be sure that it is available on the