{"id":17258673,"url":"https://github.com/xiaq/campus-scan","last_synced_at":"2025-03-26T09:20:57.291Z","repository":{"id":3700535,"uuid":"4771590","full_name":"xiaq/campus-scan","owner":"xiaq","description":null,"archived":false,"fork":false,"pushed_at":"2012-06-24T15:14:38.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T19:29:41.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaq.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-24T10:42:42.000Z","updated_at":"2014-04-03T03:45:25.000Z","dependencies_parsed_at":"2022-09-15T21:30:54.499Z","dependency_job_id":null,"html_url":"https://github.com/xiaq/campus-scan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaq%2Fcampus-scan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaq%2Fcampus-scan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaq%2Fcampus-scan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaq%2Fcampus-scan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaq","download_url":"https://codeload.github.com/xiaq/campus-scan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623030,"owners_count":20645681,"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":[],"created_at":"2024-10-15T07:21:31.482Z","updated_at":"2025-03-26T09:20:57.265Z","avatar_url":"https://github.com/xiaq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nCampus-Scan Howto\n=================\n\nDependencies\n============\n\n* Nmap. Install it with your package manager (apt, yum, pacman, ports\n  collection, whatever), all Unix distributions have it.  :)\n\n* Python 2. Only Python 2.7 was tested, but Python 2.5+ is supposed to be\n  supported. The shebang line of ``main.py`` was suitable for Archlinux. For\n  other distributions, you may need to do::\n\n   sed -e '1s/python2/python/' -i main.py\n\n* Python packages: ``numpy``, ``matplotlib``, ``python-nmap`` and ``ipaddr``.\n  Some of these may be available from your distribution. You can always\n  install a Python package with with ``easy_install`` or ``pip`` (the latter\n  being preferred).\n\nUsage\n=====\n\nmain.py::\n\n ./main.py {task} {verb}\n\n``{task}`` is one of ``uphosts`` and ``openports``, ``{verb}`` one of ``scan``\nand ``plot``.\n\nThe ``scan`` verb dumps results to ``stdout`` in JSON format. Specially,\n``./main.py openports scan`` accepts an additional `subnet` argument, in the\nformat of CIDR. The default is ``59.66.0.0/16``.\n\nThe ``plot`` verb reads input from ``stdin`` and generates diagrams. The input\nshould have been created by the ``scan`` verb. It always accepts an additional\nargument, namely the directory to put the generated diagrams. The default is\n``.``, the current working directory. The directory should already exist.\n\nExample::\n\n  ./main.py uphosts scan \u003e uphosts.json\n  ./main.py uphosts plot \u003c uphosts.json\n\nYou might want to run the ``scan`` as root (so that raw socket is available)\nfor better performance.\n\nA shell script ``run.sh`` is provided to faciliate routine execution of the\ntasks.\n\nLicense\n=======\n\nAll files are distributed under the terms of the ISC license, which is\neffectively equivalent to 2-clause BSD license.  See ``COPYING`` for a copy of\nthe license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaq%2Fcampus-scan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaq%2Fcampus-scan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaq%2Fcampus-scan/lists"}