{"id":18985226,"url":"https://github.com/potatomaster101/ipsub","last_synced_at":"2025-08-22T13:18:17.481Z","repository":{"id":115197594,"uuid":"223527369","full_name":"PotatoMaster101/ipsub","owner":"PotatoMaster101","description":"String substitution for IP and port number","archived":false,"fork":false,"pushed_at":"2019-11-23T05:05:19.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T12:29:38.480Z","etag":null,"topics":["ip","mit-license","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PotatoMaster101.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-11-23T03:55:16.000Z","updated_at":"2020-08-19T12:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8926e217-30af-4f42-b63d-a2540f63fc20","html_url":"https://github.com/PotatoMaster101/ipsub","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/PotatoMaster101%2Fipsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fipsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fipsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoMaster101%2Fipsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotatoMaster101","download_url":"https://codeload.github.com/PotatoMaster101/ipsub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239993961,"owners_count":19730779,"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":["ip","mit-license","python3"],"created_at":"2024-11-08T16:25:14.098Z","updated_at":"2025-02-21T09:48:53.861Z","avatar_url":"https://github.com/PotatoMaster101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP Substitute\nSimple tool to substitute some parts of a string with IP and port. Requires `netifaces` package.\n\n# Usage\n```\npython3 ipsub.py [-h] [-i IFACE] [-p PORT] [-ips IPSUB] [-ps PTSUB] [-subs]\n                 [-ns] [-v]\n                 input [input ...]\n```\n\n# Example\nSimple substitution (\"IP\" will be replaced with ip, \"PT\" will be replaced with port):\n```\n$ python3 ipsub.py wget http://IP:PT/foo/bar\nwget http://192.168.1.3:9999/foo/bar\n```\nChange network interface:\n```\n$ python3 ipsub.py wget http://IP:PT/foo/bar -i tun0\nwget http://192.168.50.5:9999/foo/bar\n```\nChange IP and port substitution string:\n```\n$ python3 ipsub.py wget http://IPADDR:PORT/foo/bar -ips IPADDR -ps PORT\nwget http://192.168.1.3:9999/foo/bar\n```\nChange port number:\n```\n$ python3 ipsub.py wget http://IP:PT/foo/bar -p 80\nwget http://192.168.1.3:80/foo/bar\n```\nRemove space from output:\n```\n$ python3 ipsub.py wget http://IP:PT/foo/bar -ns\nwgethttp://192.168.1.3:9999/foo/bar\n```\nSubstitute space with `${IFS}`:\n```\n$ python3 ipsub.py wget http://IP:PT/foo/bar -subs\nwget${IFS}http://192.168.1.3:9999/foo/bar\n```\nCommands with other custom flags:\n```\n$ python3 ipsub.py \"wget http://IP:PT/foo/bar -O out -q\" -i tun0\nwget http://192.168.50.5:9999/foo/bar -O out -q\n```\n\n# Setup\n```\n$ pip3 install -r requirements.txt\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatomaster101%2Fipsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotatomaster101%2Fipsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatomaster101%2Fipsub/lists"}