Live data from Hacker News

Nazar: Analyzing malware that was uncovered in leaked NSA files

research.checkpoint.com

31–34 of 34 posts

Re: Nazar: Analyzing malware that was uncovered in leaked NSA files

#31
post #24

> Territorial Dispute def path_normalize(path): try: path = re.sub('%(.+)%', (lambda m: ('%{0}%'.format(m.group(1)) if (m.group(1) not in datastore.ENV_VARS) else datastore.ENV_VARS[m.group(1)])), path) except: tedilog.error(...) return path What a terrible way to write return re.sub(r'%(.+)%', lambda m: datastore.ENV_VARS.get(m.group(1), m.group(0)), path)

Also:

  if result:
    return True
  return False

Re: Nazar: Analyzing malware that was uncovered in leaked NSA files

#32
post #24

> Territorial Dispute def path_normalize(path): try: path = re.sub('%(.+)%', (lambda m: ('%{0}%'.format(m.group(1)) if (m.group(1) not in datastore.ENV_VARS) else datastore.ENV_VARS[m.group(1)])), path) except: tedilog.error(...) return path What a terrible way to write return re.sub(r'%(.+)%', lambda m: datastore.ENV_VARS.get(m.group(1), m.group(0)), path)

Also: if result: return True return False

I’m not a python programmer, but isn’t this a good way of turning truthy or falsey answers into actual Boolean values?

Re: Nazar: Analyzing malware that was uncovered in leaked NSA files

#33

Earlier quoted context omitted.

Also: if result: return True return False

I’m not a python programmer, but isn’t this a good way of turning truthy or falsey answers into actual Boolean values?

If you want to do that just use bool().

Re: Nazar: Analyzing malware that was uncovered in leaked NSA files

#34
post #23

Earlier quoted context omitted.

use Wine.

I'm sure the Linux kernel would never be compromised by state actors, even if a retired US Army general was on the board of directors[1] of the most popular Linux distro, or that the US' most infosec oriented intel agency didn't come up with the main method for RBAC with it[2]. Or that hardware and the numerous bits of firmware that control it would ever get back-doored by any state actor! "OpenBSD co-founder Theo de…

And there's the time someone did try to sneak something into an open source kernel [1].

The cool thing is, anyone can audit the kernels any time, and even if Theo's or Linus's accounts get compromised, the backdoor will be observable by everyone.

Try that with Windows: we have no idea what's in there, we never will, and MS has zero incentive to tell us.

1. https://freedom-to-tinker.com/2013/10/09/the-linux-backdoor-...

Post reply on HN