├── requirements.txt
├── poc.png
├── b4fcdaa405f7eb8c023e462afdef5704-removebg-preview.png
├── README.md
└── Orange.py
/requirements.txt:
--------------------------------------------------------------------------------
1 | beautifulsoup4==4.11.1
2 | requests==2.28.1
3 |
--------------------------------------------------------------------------------
/poc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Edd13Mora/OrangeChakra/HEAD/poc.png
--------------------------------------------------------------------------------
/b4fcdaa405f7eb8c023e462afdef5704-removebg-preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Edd13Mora/OrangeChakra/HEAD/b4fcdaa405f7eb8c023e462afdef5704-removebg-preview.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OrangeChakra
2 |
3 |
4 |
5 |
6 | A tool for conducting OSINT on individuals and organizations in France and determining their exact address location by searching by name.
7 |
8 | :pencil: Installation
9 |
10 | ```
11 | git clone https://github.com/Edd13Mora/OrangeChakra
12 | cd OrangeChakra
13 | pip install -r requirements.txt
14 | ```
15 |
16 |
17 | :pencil: Usage
18 |
19 |
20 | :small_orange_diamond:``` Python3 orange.py eddie_morra ```
21 |
22 |
23 |
24 | :scroll: Credits
25 |
26 |
27 | [](https://www.linkedin.com/in/eddiemora/)
28 |
--------------------------------------------------------------------------------
/Orange.py:
--------------------------------------------------------------------------------
1 | import requests
2 | from bs4 import BeautifulSoup
3 | import sys
4 | import random
5 |
6 | # List of user agents to use
7 | user_agents = ['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36',
8 | 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
9 | 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36',
10 | 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36',
11 | 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36'
12 | ]
13 |
14 | if __name__ == "__main__":
15 | if len(sys.argv) != 2:
16 | print("Usage: python3 osint.py [argument]")
17 | sys.exit()
18 |
19 | inp = sys.argv[1]
20 | escap = inp.replace("_","+")
21 |
22 | url = f"https://annuaire.118712.fr/?s={escap}"
23 |
24 | # Choose a random user agent from the list
25 | user_agent = random.choice(user_agents)
26 |
27 | # Set the user agent in the headers of the request
28 | headers = {'User-Agent': user_agent}
29 | response = requests.get(url, headers=headers)
30 | soup = BeautifulSoup(response.text, "html.parser")
31 | items = soup.find_all(class_="item-content")
32 |
33 | # Initialize a counter to track the number of results
34 | count = 0
35 |
36 | for item in items:
37 | # Extract the name, type, address, and number from the item
38 | name = item.find(class_="titre")
39 | if name:
40 | name = name.text.strip()
41 | else:
42 | name = "Not found"
43 | type_ = item.find(class_="activity")
44 | if type_:
45 | type_ = type_.text.strip()
46 | else:
47 | type_ = "Not found"
48 | address = item.find(class_="address")
49 | if address:
50 | address = address.text.strip()
51 | else:
52 | address = "Not found"
53 | number = item.find(class_="button_wording nomobile")
54 | if number:
55 | number = number.text.strip()
56 | else:
57 | number = "Not found"
58 | output = f"Full Name: {name}\nType: {type_}\nAddresse: {address}\nNumero: {number}\n"
59 | print(output)
60 | count += 1
61 |
62 | # If no results were found, print a message
63 | if count == 0:
64 | print("No Informations has been found !")
65 |
--------------------------------------------------------------------------------