Difference between revisions of "Truxton bolo create"
Jump to navigation
Jump to search
(Created page with "This is the first step in creating a BOLO. =Syntax= <source lang="C"> uint64_t truxton_bolo_create( uint64_t truxton_handle ); </source> =Parameters= ==<code>truxton_handle<...") |
(→Sample) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
=Sample= | =Sample= | ||
| − | <source lang="C" highlight=" | + | <source lang="C" highlight="26"> |
#include "TruxtonCAPI.h" | #include "TruxtonCAPI.h" | ||
#pragma comment(lib, "TruxtonCAPI.lib") | #pragma comment(lib, "TruxtonCAPI.lib") | ||
| Line 19: | Line 19: | ||
#pragma hdrstop | #pragma hdrstop | ||
| − | + | void print_bolo( uint64_t bolo_handle ) | |
| + | { | ||
| + | char string[2048]; | ||
| + | |||
| + | truxton_bolo_get_id( bolo_handle, string, sizeof( string ) ); | ||
| + | |||
| + | printf( "BOLO ID: %s\n", string ); | ||
| + | |||
| + | truxton_bolo_get_criteria( bolo_handle, string, sizeof( string ) ); | ||
| + | |||
| + | printf( "%s\n", string ); | ||
| + | } | ||
| + | |||
| + | void main( void ) | ||
{ | { | ||
truxton_start(); | truxton_start(); | ||
| Line 28: | Line 41: | ||
truxton_bolo_set_id( bolo_handle, "54727578-466F-7265-6E73-69634765656B" ); | truxton_bolo_set_id( bolo_handle, "54727578-466F-7265-6E73-69634765656B" ); | ||
| + | |||
| + | truxton_bolo_set_criteria( bolo_handle, "{\"Name\":\"Scorpio WiFi\",\"Case\":\"SFPD-2015-77940\",\"Description\":\"This password was seen in phones connected with the Scorpio gang house. Suspected human trafficking connection.\",\"Contact\":\"Det. Callahan, 703.555.2122\",\"SubCriteria\":[{\"AlertCriteriaType\":2,\"EntityTypeID\":26,\"EntityString\":\"EE6494848C55F3F71ACA2C2811\"}]}" ); | ||
truxton_bolo_save( bolo_handle ); | truxton_bolo_save( bolo_handle ); | ||
Latest revision as of 10:56, 3 February 2024
This is the first step in creating a BOLO.
Contents
Syntax
uint64_t truxton_bolo_create( uint64_t truxton_handle );
Parameters
truxton_handle
The Truxton instance to hold the BOLO.
This handle comes from calling truxton_create().
Sample
#include "TruxtonCAPI.h"
#pragma comment(lib, "TruxtonCAPI.lib")
#include <stdlib.h>
#pragma hdrstop
void print_bolo( uint64_t bolo_handle )
{
char string[2048];
truxton_bolo_get_id( bolo_handle, string, sizeof( string ) );
printf( "BOLO ID: %s\n", string );
truxton_bolo_get_criteria( bolo_handle, string, sizeof( string ) );
printf( "%s\n", string );
}
void main( void )
{
truxton_start();
uint64_t truxton = truxton_create();
uint64_t bolo_handle = truxton_bolo_create( truxton );
truxton_bolo_set_id( bolo_handle, "54727578-466F-7265-6E73-69634765656B" );
truxton_bolo_set_criteria( bolo_handle, "{\"Name\":\"Scorpio WiFi\",\"Case\":\"SFPD-2015-77940\",\"Description\":\"This password was seen in phones connected with the Scorpio gang house. Suspected human trafficking connection.\",\"Contact\":\"Det. Callahan, 703.555.2122\",\"SubCriteria\":[{\"AlertCriteriaType\":2,\"EntityTypeID\":26,\"EntityString\":\"EE6494848C55F3F71ACA2C2811\"}]}" );
truxton_bolo_save( bolo_handle );
truxton_bolo_destroy( bolo_handle );
truxton_destroy( truxton );
truxton_stop();
}