Um classificador naive Bayes é provavelmente o exemplo mais tradicional para ilustrar "Inteligência Artificial" na prática. É bastante utilizado na eterna tarefa de discernir entre spam e não-spam (ham).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CpuUsage | |
{ | |
using System; | |
using System.Diagnostics; | |
public class CpuMeter : IDisposable | |
{ | |
private CounterSample _startSample; | |
private readonly PerformanceCounter _cnt; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, time, os, shelve, hashlib | |
from cuckoo.core.db import CuckooDatabase | |
MALWARE_DIR = "/Users/zwned/Dropbox/malware/" | |
SLEEP_TIME = 60 | |
HISTORY_FILE = "cuckooMon_hist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Se o erro for algo parecido com isto: | |
#building 'lxml.etree' extension | |
#gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w | |
#In file included from src/lxml/lxml.etree.c:239:0: | |
#src/lxml/etree_defs.h:9:31: erro fatal: libxml/xmlversion.h: Arquivo ou diretório não encontrado | |
#compilação terminada. | |
#error: command 'gcc' failed with exit status 1 | |
#basta instalar libxml2-dev e libxslt-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- cuckoo/data/html/sections/entrophygraph.html --> | |
<section id="entropygraph"> | |
<div class="section-title"> | |
<h3>Entropy Graph <small>of the binary.</small></h3> | |
</div> | |
{% if results.entropygraph %} | |
<a href="data:image/png;base64,{{results.entropygraph.data}}"><img class="fade" src="data:image/png;base64,{{results.entropygraph.data}}"/></a> | |
{% else %} | |
No entropy graph available. | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import time | |
import requests | |
import threading | |
import Tkinter | |
from BeautifulSoup import BeautifulSoup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically find XOR/SHL/SHR routines from an executable | |
# Uses IDAW (text IDA) | |
# @bbaskin - brian @ thebaskins.com | |
# While other, more powerful scripts like FindCrypt find known | |
# algorithms this is used to find custom encoding or modified | |
# encryption routines | |
""" | |
Script results: | |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
This Gist has been transfered into a Github Repo. You'll find the most recent version here.
When creating your rules for YARA keep in mind the following guidelines in order to get the best performance from them. This guide is based on ideas and recommendations by Victor M. Alvarez and WXS.
- Revision 1.4, October 2020, applies to all YARA versions higher than 3.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>exe</OutputType> | |
<TargetFrameworks>net472;net5.0-windows</TargetFrameworks> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="System.IO.Pipes.AccessControl" Version="5.0.0" /> | |
</ItemGroup> |
OlderNewer