oct.tools package¶
oct.tools contain two functions. One who can be called directly in the shell
octtools-user-generator
How to¶
octtools-user-generator¶
is the command line to generate either user or email WITH their password
occtools-user-generator must have a CSV file provided and have multiple optional arguments
MUST HAVE THIS ONE
-h [CSV File]
[[OPTIONAL]]
-n [nb_item] Number of items generated
-s [size] Size of each user/email/password generated
-w [type u = user, e = email] What you want to generate
Default value of each options
-n => 250 items
-s => item with lenght of 6
-w => e (generate email by default)
Exemple¶
octtools-user-generator userfile.csv -n 25000 -s 6 -w u
This command line will generate 25000 email/password with a lenght of 6 in “userfile.csv”
email_generator_func¶
Is a function with multiple arguments, some have a default value
csvfile
what = Define what you want to generate u = user, e = email.
number = Define how many items you want to generate
size = Define the size of each item
chars = Define with 'what' you want to generate you item
Default value of each option
number = 15
size = 6
char = string.ascii_lowercase
Exemple¶
email_generator_func("csvfile.csv", "u", 15000, 7):
This command line will generate 15000 user/password with a length of 7 in csvfile.csv
oct.tools.email_generator module¶
-
oct.tools.email_generator.
email_generator
()¶ Command line tool for generating csv file containing user / password pairs
Returns: None
-
oct.tools.email_generator.
email_generator_func
(csvfile, what, number_of_email=15, size=6, chars='abcdefghijklmnopqrstuvwxyz')¶ Parameters: - number_of_email – Number of random generated email
- size – number of char generated
- chars – lower the generated char
Type: int
Type: int
Type: string
Returns: None
oct.tools.xmltocsv module¶
-
oct.tools.xmltocsv.
main
()¶ Take as options: Xml file, CSV File
Parse the XML and write each value get from it inside the CSV file provided. :return: None
-
oct.tools.xmltocsv.
sitemap_to_csv
(xml_file, csv_file)¶