Exemple #1
0
void erasure_tool_run() {
    keyboard_register_key_down(handle_down);

    console_clear();
    console_puts("Welcome to K-OS!\n\nCopyright (c) 2013 Keeley Hoek\nAll rights reserved.\n\n");

    console_puts("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n");
    console_puts("ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n");
    console_puts("WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n");
    console_puts("DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n");
    console_puts("ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n");
    console_puts("(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n");
    console_puts("LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n");
    console_puts("ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n");
    console_puts("(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n");
    console_puts("SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n");

    console_puts("\n\n\n\n\n\n\n");
    console_puts("If you do not agree to the above terms TURN THE COMPUTER OFF NOW.\n");
    console_puts("If you do agree to the above terms press enter to continue.");

    beep();

    wait_for_enter();

    main_menu();
}
Exemple #2
0
int main()
{
	print_welcome();

	print_prompt();

	wait_for_enter();

	print_goodbye();

	return 0;
}
Exemple #3
0
static void print_tech_info() {
    console_clear();
    print_header();

    console_color(0x0E);
    console_puts("Technical Information\n");
    console_color(0x07);

    console_puts("The K-OS Secure Data Erasure Tool works by repeatadly writing over the contents of attached ATA drives. ");
    console_puts("Normal HDD erasure involves (a maximum of) a single pass over the drive where all bits are set to zero.");

    console_puts("\n\nIt has been postulated by some that the \"deleted\" bits of the HDD could potentially be recovered, and so this method of deletion is not very secure. ");
    console_puts("This tool attempts to remedy the problem by providing a simple means of overwriting HDDs using multiple passes. ");
    console_puts("Simply enter the number of passes that you would like the tool to write, and it will do the rest for you.");

    console_puts("\n\nFor every odd pass, the tool will write zeroes to the disk, and for every even pass, the tool will write ones to the disk.");

    console_puts("\n\n\n\n\nPress \"ENTER\" go back.");

    wait_for_enter();
}
Exemple #4
0
int main(void)
{
    pifacecad_open();

    pifacecad_lcd_backlight_on();
    wait_for_enter("Backlight on");

    pifacecad_lcd_write("Hello, World!");
    wait_for_enter("write");

    pifacecad_lcd_set_cursor(5, 1);
    wait_for_enter("set cursor to 5, 1");

    int address = pifacecad_lcd_get_cursor_address();
    pifacecad_lcd_set_cursor_address(address + 1);
    wait_for_enter("set cursor by address + 1");

    pifacecad_lcd_clear();
    wait_for_enter("clear");

    pifacecad_lcd_write("Screw you guys\nI'm going home");
    pifacecad_lcd_home();
    wait_for_enter("home and newline");

    pifacecad_lcd_display_off();
    wait_for_enter("display off");

    pifacecad_lcd_display_on();
    wait_for_enter("display on");

    pifacecad_lcd_blink_off();
    wait_for_enter("blink off");
    pifacecad_lcd_blink_on();
    wait_for_enter("blink on");

    pifacecad_lcd_cursor_off();
    wait_for_enter("cursor off");
    pifacecad_lcd_cursor_on();
    wait_for_enter("cursor on");

    pifacecad_lcd_backlight_off();
    wait_for_enter("backlight off");

    pifacecad_lcd_move_left();
    wait_for_enter("move left");

    pifacecad_lcd_move_right();
    wait_for_enter("move right");

    pifacecad_lcd_clear();
    pifacecad_lcd_left_to_right();
    pifacecad_lcd_write("left 2 right");
    wait_for_enter("left to right");

    pifacecad_lcd_clear();
    pifacecad_lcd_set_cursor(15, 1);
    pifacecad_lcd_right_to_left();
    pifacecad_lcd_write("right 2 left");
    wait_for_enter("right to left");

    pifacecad_lcd_clear();
    pifacecad_lcd_left_to_right();
    uint8_t bitmap[8] = {0x10, 0x8, 0x7, 0xf, 0xf, 0xe, 0x0, 0x0};
    pifacecad_lcd_store_custom_bitmap(0, bitmap);
    pifacecad_lcd_write_custom_bitmap(0);
    wait_for_enter("custom bitmap");

    pifacecad_lcd_clear();
    pifacecad_lcd_display_off();
    pifacecad_close();
}