{ "info": { "author": "Boumediene Kaddour", "author_email": "snboumediene@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# IPGenerator\r\n-------------\r\n\r\n############################################\r\n\r\n __Program__: IPGenerator \r\n __version__: 0.3.1\r\n __Author__ : Boumediene Kaddour \r\n __Email__ : snboumediene@gmail.com \r\n __Website__: http://www.pentestingskills.com\r\n \r\n############################################\r\n\r\nThis is a very simple third-party python module that generates list of ALL IPs for a given network, the module provides a couple of other information as well, through out the Class IPGen for instance, you can get the first IP, the last IP, the BROADCAST address or the network ID, in addition, you can generate the list of IPs which is returned as a list.\r\nThe module provides another Class for performing an informtion gathering, for example you can use the localIP() method to get the local IP address, or you can use other methods to get other info like MASK(), GATEWAY(), GW_MAC() ... etc.\r\n\r\n\r\nRequirements:\r\n------------\r\n\r\nNo third-party mudules are needed, which means the tool has been built from scratch, i'm using only the AF_INET, SOCK_STREAM and inet_ntoa socket methods.\r\n\r\nUsage:\r\n-----\r\n\r\n # Generating List of IPs\r\n ------------------------\r\n >>> from IPGenerator import IPGen, Netinfo \r\n >>> ip = IPGenerator(\"172.16.122.1/28\") \r\n >>> ip.isNetOK() \r\n >>> True \r\n >>> iplist = ip.IPGen() \r\n >>> for IP in iplist:\r\n >>> .... print IP \r\n 172.16.122.1 \r\n 172.16.122.2 \r\n 172.16.122.3 \r\n 172.16.122.4 \r\n 172.16.122.5 \r\n 172.16.122.6 \r\n 172.16.122.7 \r\n 172.16.122.8 \r\n 172.16.122.9 \r\n 172.16.122.10 \r\n 172.16.122.11 \r\n 172.16.122.12 \r\n 172.16.122.13 \r\n 172.16.122.14\r\n\r\n # Getting the local IP address\r\n ------------------------------\r\n >>> LIP = Netinfo().localIP()\r\n >>> print \"The local IP address is: %s \"%LIP\r\n >>> The local IP address is: 172.16.122.99\r\n >>> print Netinfo().MASK()\r\n 255.255.255.0\r\n >>> print Netinfo().GATEWAY()\r\n 172.16.122.1", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/IPGenerator", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "IPGenerator", "package_url": "https://pypi.org/project/IPGenerator/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/IPGenerator/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/IPGenerator" }, "release_url": "https://pypi.org/project/IPGenerator/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Generate a list of IPs for a given Network ID", "version": "0.3.1" }, "last_serial": 1739827, "releases": { "0.0": [ { "comment_text": "", "digests": { "md5": "6c9b076bc9247a1b2f006add11014c03", "sha256": "b0c77c07b16c12e345934f30cf6fba0a1a4fe88581489c8e632d53f0541458e3" }, "downloads": -1, "filename": "IPGenerator-0.0.tar.gz", "has_sig": false, "md5_digest": "6c9b076bc9247a1b2f006add11014c03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2210, "upload_time": "2015-09-25T15:41:12", "url": "https://files.pythonhosted.org/packages/a9/67/728dff7a591e8435a65169309d9cb9d5ae22f3a159b4836e30866eb6a275/IPGenerator-0.0.tar.gz" } ], "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "bb423fb9f7de03566d972010c9d8e37f", "sha256": "cb316439a1de9a012c3cc97e89912c47a52251a6462a7b5f3213fb9dc1d5b41e" }, "downloads": -1, "filename": "IPGenerator-0.2.tar.gz", "has_sig": false, "md5_digest": "bb423fb9f7de03566d972010c9d8e37f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2217, "upload_time": "2015-09-25T15:59:41", "url": "https://files.pythonhosted.org/packages/81/88/888f31c0a43f16af5e2b5ac6e519738b6119b874b31ece24ef6264a9367a/IPGenerator-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7274c55c560ab01d13fe0d57a0f38d9e", "sha256": "2bd6eeca74d33a25bf227c5a6b91d7d984261df9901a831837ea480ccd8c91d7" }, "downloads": -1, "filename": "IPGenerator-0.3.tar.gz", "has_sig": false, "md5_digest": "7274c55c560ab01d13fe0d57a0f38d9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2015-09-26T13:21:57", "url": "https://files.pythonhosted.org/packages/a5/d0/cb72c41b4d17d9a48564a2cae57fd22eee621625cb9ba9afee1e878a305d/IPGenerator-0.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "3b5933b436369cf2b3c8ead854bb7d6c", "sha256": "85772417864436a382ed8b6f26c0ede949725c65a36059336017a7f5c1a02a3e" }, "downloads": -1, "filename": "IPGenerator-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3b5933b436369cf2b3c8ead854bb7d6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3564, "upload_time": "2015-09-26T13:28:25", "url": "https://files.pythonhosted.org/packages/1c/7b/5a0cad98db776123cb4014499ce0577f360cc36ac84137626510061bd9b4/IPGenerator-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c60dbabf92c7087999b924c1bbdae405", "sha256": "a8bb00a00ad1b63689c2f1bc41a90e7c73120460145d557846a5e4ce8f3443c3" }, "downloads": -1, "filename": "IPGenerator-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c60dbabf92c7087999b924c1bbdae405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3669, "upload_time": "2015-09-26T13:58:28", "url": "https://files.pythonhosted.org/packages/d6/ff/beac5083b34d95825406de371fa25a2a92641bb5d2a0e16b44f26e5d31c2/IPGenerator-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c60dbabf92c7087999b924c1bbdae405", "sha256": "a8bb00a00ad1b63689c2f1bc41a90e7c73120460145d557846a5e4ce8f3443c3" }, "downloads": -1, "filename": "IPGenerator-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c60dbabf92c7087999b924c1bbdae405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3669, "upload_time": "2015-09-26T13:58:28", "url": "https://files.pythonhosted.org/packages/d6/ff/beac5083b34d95825406de371fa25a2a92641bb5d2a0e16b44f26e5d31c2/IPGenerator-0.3.1.tar.gz" } ] }