Ejemplo n.º 1
0
def logo():
    """Cuckoo asciiarts.
    @return: asciiarts array.
    """
    apt = """
                            xxxxxx       xxxx
                             xxx        xxxx
                              x         xxxx
                   xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx              x
                        xxxx    xxxx    xxxx                        x
                 xxx    xxx     xxxxxxxxxxxxxxx         x
                          xx    xx                 xxxx      x
      x      xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx     x
          x             xxxxxxxxxxxx    xxxx                 x
            x           xxxx    xxxx    xxxxxxxxxxxxx          x
             x          xxxxxxxxxxxx    xxxx                x
            x           xxxx    xxxx    xxxxxxxxxxxxx                x
         x              xxxxxxxxxxxx    xxxx                           xx
       xx               xxxx    xxxx    xxxxxxxxxxxxx                  xxx
      xxx              xxxx  x  xxxx    xxxx                         xxxxx
       xxxx          xxxx     xxxxx      xxxx                     xxxxxx
         xxxxxxxxxxxxx         xxx         xxxxxxxxxxxxxxxxxxxxxxxxx
                                    /   \\       
   _                        )      ((   ))     (
  (@)                      /|\\      ))_((     /|\\
  |-|                     / | \\    (/\\|/\\)   / | \\                      (@)
  | | -------------------/--|-voV---\\`|'/--Vov-|--\\---------------------|-|
  |-|                         '^`   (o o)  '^`                          | |
  | |                               `\\Y/'                               |-|
  |-|                                                                   | |
  | |                        Dragon Sandbossss                          |-|
  | |                                                                   |-|
  |_|___________________________________________________________________| |
  (@)              l   /\\ /         ( (       \\ /\\   l                `\\|-|
                   l /   V           \\ \\       V   \\ l                  (@)
                   l/                _) )_          \\I
                                     `\\ /'
                                       `"""

    print(red(bold(apt)))
    print("")
    print(" Dragon Sandbox " + yellow(CUCKOO_VERSION))
    sys.stdout.flush()
Ejemplo n.º 2
0
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("-a", "--all", help="Download everything", action="store_true", required=False)
    parser.add_argument("-s", "--signatures", help="Download Cuckoo signatures", action="store_true", required=False)
    parser.add_argument("-p", "--processing", help="Download processing modules", action="store_true", required=False)
    parser.add_argument("-m", "--machinemanagers", help="Download machine managers", action="store_true", required=False)
    parser.add_argument("-r", "--reporting", help="Download reporting modules", action="store_true", required=False)
    parser.add_argument("-f", "--force", help="Install files without confirmation", action="store_true", required=False)
    parser.add_argument("-w", "--rewrite", help="Rewrite existing files", action="store_true", required=False)
    args = parser.parse_args()

    enabled = []
    force = False
    rewrite = False

    if args.all:
        enabled.append("processing")
        enabled.append("signatures")
        enabled.append("reporting")
        enabled.append("machinemanagers")
    else:
        if args.signatures:
            enabled.append("signatures")
        if args.processing:
            enabled.append("processing")
        if args.reporting:
            enabled.append("reporting")
        if args.machinemanagers:
            enabled.append("machinemanagers")

    if not enabled:
        print(colors.red("You need to enable some category!\n"))
        parser.print_help()
        return

    if args.force:
        force = True
    if args.rewrite:
        rewrite = True

    install(enabled, force, rewrite)
Ejemplo n.º 3
0
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("-a",
                        "--all",
                        help="Download everything",
                        action="store_true",
                        required=False)
    parser.add_argument("-s",
                        "--signatures",
                        help="Download Cuckoo signatures",
                        action="store_true",
                        required=False)
    parser.add_argument("-p",
                        "--processing",
                        help="Download processing modules",
                        action="store_true",
                        required=False)
    parser.add_argument("-m",
                        "--machinemanagers",
                        help="Download machine managers",
                        action="store_true",
                        required=False)
    parser.add_argument("-r",
                        "--reporting",
                        help="Download reporting modules",
                        action="store_true",
                        required=False)
    parser.add_argument("-f",
                        "--force",
                        help="Install files without confirmation",
                        action="store_true",
                        required=False)
    parser.add_argument("-w",
                        "--rewrite",
                        help="Rewrite existing files",
                        action="store_true",
                        required=False)
    args = parser.parse_args()

    enabled = []
    force = False
    rewrite = False

    if args.all:
        enabled.append("processing")
        enabled.append("signatures")
        enabled.append("reporting")
        enabled.append("machinemanagers")
    else:
        if args.signatures:
            enabled.append("signatures")
        if args.processing:
            enabled.append("processing")
        if args.reporting:
            enabled.append("reporting")
        if args.machinemanagers:
            enabled.append("machinemanagers")

    if not enabled:
        print(colors.red("You need to enable some category!\n"))
        parser.print_help()
        return

    if args.force:
        force = True
    if args.rewrite:
        rewrite = True

    install(enabled, force, rewrite)