Benign iot-malware Download

su.c

Accesses argv[0] (Self path)User information fingerprinting
SHA-2560fe7e7724296ff0c405f24d27becd4cd7c3eb216f600b5c2d8be85f2375adb7f
MaleculeO(Dy)H(Po)

Evidence

Accesses argv[0] (Self path) lines 63–65
63 if (argv[0] && LONE_DASH(argv[0])) {
64 flags |= SU_OPT_l;
65 argv++;
Get login name lines 79–89
79#if ENABLE_FEATURE_UTMP
80 old_user = user_buf;
81 if (getlogin_r(user_buf, sizeof(user_buf)) != 0)
82#endif
83 {
84 pw = getpwuid(cur_uid);
85 old_user = pw ? xstrdup(pw->pw_name) : "";
86 }
87 tty = xmalloc_ttyname(2);
88 if (!tty) {
89 tty = "none";
Password getter or checker lines 96–98
96 if (cur_uid == 0 || ask_and_check_password(pw) > 0) {
97 if (ENABLE_FEATURE_SU_SYSLOG)
98 syslog(LOG_NOTICE, "%c %s %s:%s",

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.