{"id":18150071,"url":"https://github.com/sysulq/my-scripts","last_synced_at":"2025-04-06T22:34:01.705Z","repository":{"id":152270117,"uuid":"14576815","full_name":"sysulq/my-scripts","owner":"sysulq","description":"All my scripts.","archived":false,"fork":false,"pushed_at":"2014-05-16T03:13:27.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T04:47:16.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysulq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-21T03:31:29.000Z","updated_at":"2014-06-28T02:50:33.000Z","dependencies_parsed_at":"2023-04-09T20:47:32.784Z","dependency_job_id":null,"html_url":"https://github.com/sysulq/my-scripts","commit_stats":null,"previous_names":["sysulq/my-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fmy-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fmy-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fmy-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fmy-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysulq","download_url":"https://codeload.github.com/sysulq/my-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563909,"owners_count":20958971,"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-11-02T00:07:28.882Z","updated_at":"2025-04-06T22:34:01.686Z","avatar_url":"https://github.com/sysulq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"All my scripts for working\n==========================\n\n###getTopTenIp.py\n\nGetting top ten ip from access log, which is useful when server is attacked.\n\n```\n$ ./getTopTenIp.py domain.com.access.log \n['60.175.248.204', 594]\n['183.60.177.227', 576]\n['60.175.248.197', 540]\n['60.175.248.200', 509]\n['36.250.228.112', 468]\n['221.204.162.66', 439]\n['60.175.248.201', 371]\n['36.250.1.75', 218]\n['60.55.9.173', 204]\n['125.39.16.194', 185]\n```\n###getTopTenIpFromTcpConnections.py\n\nGetting top ten ip from tcp connections, which is usefule when server is attacked.\n\n```\n$ ./getTopTenIpFromTcpConnections.py\n['323', '123.150.201.66']\n['266', '183.136.136.99']\n['202', '122.136.128.137']\n['148', '125.45.231.7']\n['129', '122.136.128.138']\n['105', '121.31.122.10']\n['100', '124.67.72.155']\n['99', '221.228.209.137']\n['98', '61.158.0.118']\n['96', '114.254.87.203']\n```\n\n###updateIdInMongodb.py\n\nUpdating rule id in mongodb, which is used to fix the unexisted field.\n\n```\n$ ./updateIdInMongodb.py\n###starting update###\n###finishing update###\n```\n\n###server.py\n\nA tcp server using epoll for high performance.\n\n```\n$ ./server.py\n```\n###getTcpStatus.py\n\nGetting the tcp status of the localhost\n\n```\n$ ./getTcpStatus.py \n[['TIME_WAIT', '10977'], ['SYN_SENT', '22'], ['FIN_WAIT1', '15276'], ['FIN_WAIT2', '272'], ['ESTABLISHED', '15209'], ['SYN_RECV', '132'], ['CLOSING', '10'], ['LAST_ACK', '625']]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysulq%2Fmy-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysulq%2Fmy-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysulq%2Fmy-scripts/lists"}