-
Notifications
You must be signed in to change notification settings - Fork 154
Random String
This helper provides developers with a simple function to randomly generate a string of letters, numbers, or characters.
The random_string function was first introduced in FalconPy v1.5.1.
Results are returned as a string, regardless of keyword arguments supplied.
lqp7iGsob0This function supports four keyword arguments.
| Keyword | Data type | Default | Allowed values |
|---|---|---|---|
length |
Integer | 10 |
Any Performance will be impacted by generating extremely long strings |
include_letters |
Boolean | True | True or False |
include_digits |
Boolean | True | True or False |
include_specials |
Boolean | False | True or False |
Calling the function without arguments will produce a 10 character long string of numbers and mixed-case letters similar to the result example above.
Keywords may be provided in any order and combination.
from falconpy import random_string
result = random_string()
print(result)lqp7iGsob0The length of the returned string can be specified using the length keyword argument.
from falconpy import random_string
result = random_string(length=25)
print(result)LOtxDgHV9z0OblG1wOykSFgLmLetters, numerical digits and special characters can be enabled and disabled using the include_letters, include_digits and include_specials keywords.
The following example will generate a string of 10 numbers.
from falconpy import random_string
result = random_string(include_letters=False)The generated value is returned as a string.
6759739861This example will generate a 25 character string, containing numbers, numerical digits and special characters.
from falconpy import random_string
result = random_string(length=25, include_specials=True)0h&OLSUofllhtUwbZdwu@BymF
- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Alerts
- API Integrations
- ASPM
- CAO Hunting
- Certificate Based Exclusions
- Cloud AWS Registration
- Cloud Azure Registration
- Cloud OCI Registration
- Cloud Connect AWS (deprecated)
- Cloud Security Assets
- Cloud Snapshots
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Image Compliance
- Container Images
- Container Packages
- Container Vulnerabilities
- Content Update Policies
- Correlation Rules
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- DataScanner (deprecated)
- Delivery Settings
- Deployments
- Detects (deprecated)
- Device Content
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- FaaS Execution
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- Intelligence Feeds
- Intelligence Indicator Graph
- IOA Exclusions
- IOC
- IOCs (deprecated)
- IT Automation
- Kubernetes Container Compliance
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- NGSIEM
- OAuth2
- ODS (On Demand Scan)
- Overwatch Dashboard
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Serverless Vulnerabilities
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust
