()
| 124 | "rateLimit": True, |
| 125 | "exists": False}) |
| 126 | async def maincore(): |
| 127 | parser= ArgumentParser(description=f"ignorant v{__version__}") |
| 128 | parser.add_argument("country_code", |
| 129 | nargs='+', metavar='country code', |
| 130 | help="Country code of the phone (Example +1)") |
| 131 | parser.add_argument("phone", |
| 132 | nargs='+', metavar='phone number', |
| 133 | help="Target phone example (345568554)") |
| 134 | parser.add_argument("--only-used", default=False, required=False,action="store_true",dest="onlyused", |
| 135 | help="Displays only the sites used by the target email address.") |
| 136 | parser.add_argument("--no-color", default=False, required=False,action="store_true",dest="nocolor", |
| 137 | help="Don't color terminal output") |
| 138 | parser.add_argument("--no-clear", default=False, required=False,action="store_true",dest="noclear", |
| 139 | help="Do not clear the terminal to display the results") |
| 140 | parser.add_argument("-T","--timeout", default=10, required=False,dest="timeout", |
| 141 | help="Set max timeout value (default 10)") |
| 142 | |
| 143 | check_update() |
| 144 | args = parser.parse_args() |
| 145 | credit() |
| 146 | country_code=args.country_code[0] |
| 147 | phone=args.phone[0] |
| 148 | |
| 149 | # Import Modules |
| 150 | modules = import_submodules("ignorant.modules") |
| 151 | websites = get_functions(modules,args) |
| 152 | |
| 153 | timeout=args.timeout |
| 154 | # Start time |
| 155 | start_time = time.time() |
| 156 | # Def the async client |
| 157 | client = httpx.AsyncClient(timeout=timeout) |
| 158 | # Launching the modules |
| 159 | out = [] |
| 160 | instrument = TrioProgress(len(websites)) |
| 161 | trio.lowlevel.add_instrument(instrument) |
| 162 | async with trio.open_nursery() as nursery: |
| 163 | for website in websites: |
| 164 | nursery.start_soon(launch_module, website, phone, country_code, client, out) |
| 165 | trio.lowlevel.remove_instrument(instrument) |
| 166 | # Sort by modules names |
| 167 | out = sorted(out, key=lambda i: i['name']) |
| 168 | # Close the client |
| 169 | await client.aclose() |
| 170 | # Print the result |
| 171 | print_result(out,args,phone, country_code,start_time,websites) |
| 172 | credit() |
| 173 | def main(): |
| 174 | trio.run(maincore) |
nothing calls this directly
no test coverage detected