Skip to content

Crash with MemoryError #12

Description

@kernelzeroday

Ran into this issue while testing the script. Worked fine a few times, then halfway through cleaning some logs i got a crash like this, then it continues to crash. IP and hostnames replaced as they are not relevant.

root@generic_host_name:~# python nojail.py -i x.x.x.x -n x.x.x.x
[ ] Cleaning logs for sjkgxd (x.x.x.x - x.x.x.x).
[ ] No entries to remove from /var/run/utmp.
[ ] No entries to remove from /var/log/wtmp.
[ ] No entries to remove from /var/log/btmp.
Traceback (most recent call last):
  File "nojail.py", line 601, in <module>
    clean_lastlog(LINUX_LASTLOG_FILE, args.user, args.ip, args.hostname)
  File "nojail.py", line 331, in clean_lastlog
    clean_file += f.read()
MemoryError

Any ideas? The system was nowhere close to out of memory.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions