{"id":15720821,"url":"https://github.com/amboxer21/sshmonitor","last_synced_at":"2025-04-30T15:24:15.409Z","repository":{"id":147838062,"uuid":"86854287","full_name":"amboxer21/SSHMonitor","owner":"amboxer21","description":"Notifies you of any ssh attempts to your computer, whether the attempts are successful or not. Please fork instead of clone.","archived":false,"fork":false,"pushed_at":"2024-05-06T22:05:21.000Z","size":3951,"stargazers_count":11,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T15:24:08.027Z","etag":null,"topics":["c","c-programming","daemon","gtk2","gui","linux","monitor","notify","pytailf","python","python2","python3","security","ssh","ssh-monitor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amboxer21.png","metadata":{"files":{"readme":"README","changelog":"changelog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-31T19:39:26.000Z","updated_at":"2024-12-30T22:22:58.000Z","dependencies_parsed_at":"2024-10-03T22:00:36.883Z","dependency_job_id":"2619ac3c-753c-4c0b-bd0f-891228da86ce","html_url":"https://github.com/amboxer21/SSHMonitor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amboxer21%2FSSHMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amboxer21%2FSSHMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amboxer21%2FSSHMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amboxer21%2FSSHMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amboxer21","download_url":"https://codeload.github.com/amboxer21/SSHMonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251730053,"owners_count":21634319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c-programming","daemon","gtk2","gui","linux","monitor","notify","pytailf","python","python2","python3","security","ssh","ssh-monitor"],"created_at":"2024-10-03T22:00:23.930Z","updated_at":"2025-04-30T15:24:15.389Z","avatar_url":"https://github.com/amboxer21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSHMonitorPy\nPython implementation of SSHMonitor.rb. \n\nSSHMonitorPy notifies you of any ssh attempts to your computer, whether the attempts are successful or not.\n\nBuild program:\n  sudo python setup.py install\n\nRemove program:\n  python setup.py remove\n\nModify version in setup.py before building:\n    setup(\n        packages=[],\n        name='sshmonitor',\n        version='0.0.6', # increment version number\n\nBuild package for PyPi:\n  python setup.py sdist\n  twine upload dist/*\n\nNOTE: If twine does not work with the above command you can try,\n   twine upload --repository-url 'https://upload.pypi.org/legacy/' dist/sshmonitor-0.0.6.tar.gz\n\nContents of ~/.pypirc:\n[distutils]\nindex-servers =\n  pypi\n  pypitest\n\n[pypi]\nrepository=https://pypi.python.org/pypi\nusername=username\npassword='password'\n\n[pypitest]\nrepository=https://testpypi.python.org/pypi\nusername=username\npassword='password'\n\n\nCompile C Module\n\ngcc -c -fPIC masquerade.c -o masquerade.o\ngcc masquerade.o -shared -o libmasquerade.so\n\nor \n\ngcc -shared -o libmasquerade.so -fPIC masquerade.c\n\nCompile masquerade(uses pthread)\ngcc masquerade.c -o masquerade -lpthread\n\nBuilding libbuild.so\ngcc -c -fPIC src/build.c -o libbuild.o\ngcc libbuild.o -shared -o libbuild.so\ncp -i src/lib/shared/libbuild.so src/lib/shared/original.libbuild.so\ncp libbuild.so src/lib/shared/\n\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e import ctypes\n\u003e\u003e\u003e shared_object = 'libmasquerade.so'\n\u003e\u003e\u003e shared_object_path = os.path.join(*(os.path.split(os.path.__file__)[:-1] + (shared_object, )))\n\u003e\u003e\u003e User = ctypes.cdll.LoadLibrary(shared_object_path)\n\u003e\u003e\u003e User.masquerade('anthony')\n\nanthony@ghost:~/Documents/Python/sshmonitor/src$ sudo python\nPython 2.7.13 (default, Sep 26 2018, 18:42:22) \n[GCC 6.3.0 20170516] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import os, ctypes\n\u003e\u003e\u003e from ctypes import cdll\n\u003e\u003e\u003e libmasquerade = cdll.LoadLibrary('/home/anthony/Documents/Python/sshmonitor/src/libmasquerade.so')\n\u003e\u003e\u003e libmasquerade.masquerade('anthony')\nanthony\n\n\nCompile GTK UI\ngcc notify-gtk.c -o notify-gtk `pkg-config --cflags --libs gtk+-2.0`\n\nCreate shared object via gcc\ngcc -shared -o libmasquerade.so -fPIC masquerade.c -lpthread\n\nSet env\nenv DISPLAY=:0\n\n\nDebugging sshmonitor.py\n\nsudo gdb --args python -dv sshmonitor.py --disable-email --verbose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famboxer21%2Fsshmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famboxer21%2Fsshmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famboxer21%2Fsshmonitor/lists"}