Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

output ascii-art GoKart logo #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions analyzers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ and a generic analyzer based on recursive taint propagation
package analyzers

import (
"bytes"
"encoding/json"
"errors"
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
Expand Down Expand Up @@ -117,6 +119,15 @@ func Scan(args []string) ([]util.Finding, error) {
if err != nil {
fmt.Printf("Unable to get current dir.\n")
}
// output ascii-art for GoKart logo
cmd := exec.Command("cat", "./docs/img/ascii-art.ans")
cmdOutput := &bytes.Buffer{}
cmd.Stdout = cmdOutput
err = cmd.Run()
if err != nil {
os.Stderr.WriteString(err.Error())
}
fmt.Print(string(cmdOutput.Bytes()))

if util.Config.OutputSarif {
util.InitSarifReporting()
Expand Down
24 changes: 24 additions & 0 deletions docs/img/ascii-art.ans
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
                                                                               
                                      *,                                       
                                #(#(#,#######                                  
                       #%%%% ,   ,((#((    (##                                 
                       /%  ####################    /###                        
                        #(((#(((#((((      ,#(((#(((#                          
                    / #(#(#(#(# %%%%%%%%%%%%%%%%%,                             
            .%%%%%%%**((#(((# %%%%%. .%%%%%%%%%%%%%%                           
                      /##### %%%@@@@@@@@@ %%%%%%%@@@@@@@                       
                     **%%/, %%% @@@@@@  (@%%%%%%%@@@@@@%                       
                %%%%%%%%%%%%%%%%@@@@@@@@@,%%%  %%% @@@                         
                   ,%%%%%% %%%%%%% #@& %%%%%*,,#%%%%%/                         
                  /(%%%%%%(%%%%%%%%%%%%%%%%%%%%%%%%%%                          
      ##%%%%%%%%%%%%%%%%%.,%%%%%%%%%%%%%%%%%%/*////  ***,                      
                 **%%%%%%,,.%%%%%%%%%%%%%%% //,%/*/*/*/*@@//*                  
               %%%#         , %%%%%%%%%%&& ////.*******@@@(*/*                 
                ,,,,,,*///////,%%%%%%%%%%%// %%/ *******////////               
            %%,,%%%%%,,///////* %%%%%%%%%%(//*( //% */    ,*/***/              
          %%%,,%%,//%(,/,*/*  *.%%%%%%%% ,,,/////** //////.*/*/*/*/////        
    %%%%%%%%,,,%*,//%,,//***/***/***** ,%%%%,////..%/// %% ************ , ***  
     %%%%%%%(,,%%#%%,,/// //***,,,////.(%*/%,///////**//////////////////**///* 
  %%% %%%%%%% ,,/(,,/////,**/***/***/*.*%%%,///*/***/***/***/*,,,,,,,,,,****/* 
                                        *///#/   */*/*/*/*/*/*/*/*/*/*/*/**.