Forwarded from UNDERCODE NEWS
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
golang http request package code:
package utils
import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
"sync"
)
var (
GET_METHOD = "GET"
POST_METHOD = "POST"
SENDTYPE_FROM = "from"
SENDTYPE_JSON = "json"
)
type HttpSend struct {
Link string
SendType string
Header map[string]string
Body map[string]string
sync.RWMutex
}
func NewHttpSend(link string) *HttpSend {
return &HttpSend{
Link: link,
SendType: SENDTYPE_FROM,
}
}
func (h *HttpSend) SetBody(body map[string]string) {
h.Lock()
defer h.Unlock()
h.Body = body
}
func (h *HttpSend) SetHeader(header map[string]string) {
h.Lock()
defer h.Unlock()
h.Header = header
}
func (h *HttpSend) SetSendType(send_type string) {
h.Lock()
defer h.Unlock()
h.SendType = send_type
}
func (h *HttpSend) Get() ([]byte, error) {
return h.send(GET_METHOD)
}
func (h *HttpSend) Post() ([]byte, error) {
return h.send(POST_METHOD)
}
func GetUrlBuild(link string, data map[string]string) string {
u, _ := url.Parse(link)
q := u.Query()
for k, v := range data {
q.Set(k, v)
}
u.RawQuery = q.Encode()
return u.String()
}
func (h *HttpSend) send(method string) ([]byte, error) {
var (
req *http.Request
resp *http.Response
client http.Client
send_data string
err error
)
if len(h.Body) > 0 {
if strings.ToLower(h.SendType) == SENDTYPE_JSON {
send_body, json_err := json.Marshal(h.Body)
if json_err != nil {
return nil, json_err
}
send_data = string(send_body)
} else {
send_body := http.Request{}
send_body.ParseForm()
for k, v := range h.Body {
send_body.Form.Add(k, v)
}
send_data = send_body.Form.Encode()
}
}
client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
req, err = http.NewRequest(method, h.Link, strings.NewReader(send_data))
if err != nil {
return nil, err
}
defer req.Body.Close()
//่ฎพ็ฝฎ้ป่ฎคheader
if len(h.Header) == 0 {
//json
if strings.ToLower(h.SendType) == SENDTYPE_JSON {
h.Header = map[string]string{
"Content-Type": "application/json; charset=utf-8",
}
} else { //form
h.Header = map[string]string{
"Content-Type": "application/x-www-form-urlencoded",
}
}
}
for k, v := range h.Header {
if strings.ToLower(k) == "host" {
req.Host = v
} else {
req.Header.Add(k, v)
}
}
resp, err = client.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return nil, errors.New(fmt.Sprintf("error http code :%d", resp.StatusCode))
}
return ioutil.ReadAll(resp.Body)
}
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
golang http request package code:
package utils
import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
"sync"
)
var (
GET_METHOD = "GET"
POST_METHOD = "POST"
SENDTYPE_FROM = "from"
SENDTYPE_JSON = "json"
)
type HttpSend struct {
Link string
SendType string
Header map[string]string
Body map[string]string
sync.RWMutex
}
func NewHttpSend(link string) *HttpSend {
return &HttpSend{
Link: link,
SendType: SENDTYPE_FROM,
}
}
func (h *HttpSend) SetBody(body map[string]string) {
h.Lock()
defer h.Unlock()
h.Body = body
}
func (h *HttpSend) SetHeader(header map[string]string) {
h.Lock()
defer h.Unlock()
h.Header = header
}
func (h *HttpSend) SetSendType(send_type string) {
h.Lock()
defer h.Unlock()
h.SendType = send_type
}
func (h *HttpSend) Get() ([]byte, error) {
return h.send(GET_METHOD)
}
func (h *HttpSend) Post() ([]byte, error) {
return h.send(POST_METHOD)
}
func GetUrlBuild(link string, data map[string]string) string {
u, _ := url.Parse(link)
q := u.Query()
for k, v := range data {
q.Set(k, v)
}
u.RawQuery = q.Encode()
return u.String()
}
func (h *HttpSend) send(method string) ([]byte, error) {
var (
req *http.Request
resp *http.Response
client http.Client
send_data string
err error
)
if len(h.Body) > 0 {
if strings.ToLower(h.SendType) == SENDTYPE_JSON {
send_body, json_err := json.Marshal(h.Body)
if json_err != nil {
return nil, json_err
}
send_data = string(send_body)
} else {
send_body := http.Request{}
send_body.ParseForm()
for k, v := range h.Body {
send_body.Form.Add(k, v)
}
send_data = send_body.Form.Encode()
}
}
client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
req, err = http.NewRequest(method, h.Link, strings.NewReader(send_data))
if err != nil {
return nil, err
}
defer req.Body.Close()
//่ฎพ็ฝฎ้ป่ฎคheader
if len(h.Header) == 0 {
//json
if strings.ToLower(h.SendType) == SENDTYPE_JSON {
h.Header = map[string]string{
"Content-Type": "application/json; charset=utf-8",
}
} else { //form
h.Header = map[string]string{
"Content-Type": "application/x-www-form-urlencoded",
}
}
}
for k, v := range h.Header {
if strings.ToLower(k) == "host" {
req.Host = v
} else {
req.Header.Add(k, v)
}
}
resp, err = client.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return nil, errors.New(fmt.Sprintf("error http code :%d", resp.StatusCode))
}
return ioutil.ReadAll(resp.Body)
}
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
Forwarded from UNDERCODE NEWS
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆSpecial extractor tool for windows :
F E A T U R E S :
password recovery
network monitoring
retrieving information from web browsers
work with video / audio
work with the Internet
command line utilities
tabletop
work with Outlook / Office
programming tools
disk utilities
system utilities
other utilities
download:
http://www.nirsoft.net/utils/index.html
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆSpecial extractor tool for windows :
F E A T U R E S :
password recovery
network monitoring
retrieving information from web browsers
work with video / audio
work with the Internet
command line utilities
tabletop
work with Outlook / Office
programming tools
disk utilities
system utilities
other utilities
download:
http://www.nirsoft.net/utils/index.html
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
NirSoft
Freeware Tools and System Utilities for Windows
Unique collection of freeware utilities and freeware password recovery tools
Forwarded from UNDERCODE NEWS
Lastest report: Solarwinds FTP โsolarwinds123โ secret revealed in plain text?
#international
#international
Forwarded from UNDERCODE NEWS
Net One employees illegally leaked $US 2,126,795.66, purchased real estate in Okinawa using a privately owned company
#Leaks
#Leaks
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆ๐ป How to scan your local network using the terminal on macOS:
1) Scanning open ports of your local network with nmap
Nmap is the king of command line port scanners on macOS, but you'll need to install it first.
2) Install nmap with Homebrew
If you have Homebrew installed, run
brew install nmap
this will download and install nmap and any required dependencies.
3) Scanning with Nmap
Nmap is designed to scan the provided hostname or network address and return a list of open ports.
The name stands for "network mappe" but looks more like a port mapper.
The easiest way to run nmap is to target an IP address or range of IP addresses; replace it with the corresponding IP address for LAN scanning.
4) This particular command scans the nmap educational test server at scanme.org.
nmap 74.207.244.221
nmap scanme.org
nmap 74.207.244.221
nmap scanme.org
5) Use the forward slash to find open ports on a range of IP addresses.
nmap 192.181.0.0/24
6) To find the IP addresses of your router and various devices on your network, you can run arp or ipconfig.
sudo nmap -A scanme.org
7) Using the -A flag will cause nmap to scan more aggressively, returning significantly more information, but transparently revealing your presence in the server logs.
The -A flag must be run with sudo.
sudo nmap -O scanme.org
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆ๐ป How to scan your local network using the terminal on macOS:
1) Scanning open ports of your local network with nmap
Nmap is the king of command line port scanners on macOS, but you'll need to install it first.
2) Install nmap with Homebrew
If you have Homebrew installed, run
brew install nmap
this will download and install nmap and any required dependencies.
3) Scanning with Nmap
Nmap is designed to scan the provided hostname or network address and return a list of open ports.
The name stands for "network mappe" but looks more like a port mapper.
The easiest way to run nmap is to target an IP address or range of IP addresses; replace it with the corresponding IP address for LAN scanning.
4) This particular command scans the nmap educational test server at scanme.org.
nmap 74.207.244.221
nmap scanme.org
nmap 74.207.244.221
nmap scanme.org
5) Use the forward slash to find open ports on a range of IP addresses.
nmap 192.181.0.0/24
6) To find the IP addresses of your router and various devices on your network, you can run arp or ipconfig.
sudo nmap -A scanme.org
7) Using the -A flag will cause nmap to scan more aggressively, returning significantly more information, but transparently revealing your presence in the server logs.
The -A flag must be run with sudo.
sudo nmap -O scanme.org
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
Forwarded from UNDERCODE NEWS
In Russia, the first automated population census has started. How can Rostelecom pay nine billion on it?
#Updates
#Updates
Forwarded from UNDERCODE NEWS
Another example for:''Nothing is safe''.Crackers would sell security officials' communications
#DataBreaches
#DataBreaches
Forwarded from UNDERCODE NEWS
Forwarded from UNDERCODE NEWS
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆIMPORTANT TOOLS
[CimSweep](https://github.com/PowerShellMafia/CimSweep) - Suite of CIM/WMI-based tools that enable the ability to perform incident response and hunting operations remotely across all versions of Windows.
CIRTkit - CIRTKit is not just a collection of tools, but also a framework to aid in the ongoing unification of Incident Response and Forensics investigation processes.
[Cyber Triage](http://www.cybertriage.com) - Cyber Triage remotely collects and analyzes endpoint data to help determine if it is compromised. Itรขโฌโขs agentless approach and focus on ease of use and automation allows companies to respond without major infrastructure changes and without a team of forensics experts. Its results are used to decide if the system should be erased or investigated further.
Digital Forensics Framework - Open Source computer forensics platform built on top of a dedicated Application Programming Interface (API). DFF proposes an alternative to the aging digital forensics solutions used today. Designed for simple use and automation, the DFF interface guides the user through the main steps of a digital investigation so it can be used by both professional and non-expert to quickly and easily conduct a digital investigations and perform incident response.
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆIMPORTANT TOOLS
[CimSweep](https://github.com/PowerShellMafia/CimSweep) - Suite of CIM/WMI-based tools that enable the ability to perform incident response and hunting operations remotely across all versions of Windows.
CIRTkit - CIRTKit is not just a collection of tools, but also a framework to aid in the ongoing unification of Incident Response and Forensics investigation processes.
[Cyber Triage](http://www.cybertriage.com) - Cyber Triage remotely collects and analyzes endpoint data to help determine if it is compromised. Itรขโฌโขs agentless approach and focus on ease of use and automation allows companies to respond without major infrastructure changes and without a team of forensics experts. Its results are used to decide if the system should be erased or investigated further.
Digital Forensics Framework - Open Source computer forensics platform built on top of a dedicated Application Programming Interface (API). DFF proposes an alternative to the aging digital forensics solutions used today. Designed for simple use and automation, the DFF interface guides the user through the main steps of a digital investigation so it can be used by both professional and non-expert to quickly and easily conduct a digital investigations and perform incident response.
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
GitHub
GitHub - mattifestation/CimSweep: CimSweep is a suite of CIM/WMI-based tools that enable the ability to perform incident responseโฆ
CimSweep is a suite of CIM/WMI-based tools that enable the ability to perform incident response and hunting operations remotely across all versions of Windows. - GitHub - mattifestation/CimSweep: C...
Forwarded from UNDERCODE NEWS
The patent reveals that Apple is creating a camera that can be concealed under the screen while not in operation.
#Technologies
#Technologies
Forwarded from UNDERCODE NEWS
Github Star 7.2K, a super easy-to-use OCR data synthesis and semi-automatic annotation tool
#Updates #Analytiques
#Updates #Analytiques
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆPowerful plugins and add-ons for hackers :
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Burp.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Chrome.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Firefox.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/IDA.md/
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Immunity.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/OllyDbg.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Volatility-Framework.md
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆPowerful plugins and add-ons for hackers :
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Burp.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Chrome.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Firefox.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/IDA.md/
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Immunity.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/OllyDbg.md
https://github.com/Hack-with-Github/Powerful-Plugins/blob/master/Volatility-Framework.md
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
GitHub
Powerful-Plugins/Burp.md at master ยท Hack-with-Github/Powerful-Plugins
Powerful plugins and add-ons for hackers. Contribute to Hack-with-Github/Powerful-Plugins development by creating an account on GitHub.
Forwarded from UNDERCODE NEWS
Forwarded from UNDERCODE NEWS
A wide network of pizzerias hacked and found guilty of failing to pay UAH 75 million in taxes.
#CyberAttacks
#CyberAttacks
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆBest Web Crawling :
https://www.cyotek.com/cyotek-webcopy
http://www.octoparse.com/
https://www.httrack.com/
https://chrome.google.com/webstore/detail/scraper/mbigbapnjcgaffohmbkdlecaccepngjd
https://addons.mozilla.org/en-US/firefox/addon/outwit-hub/
http://visualscraper.blogspot.hk/
https://www.parsehub.com/
https://scrapinghub.com/
https://webhose.io/
https://dexi.io/
https://www.import.io/
https://www.spinn3r.com/
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
๐ฆBest Web Crawling :
https://www.cyotek.com/cyotek-webcopy
http://www.octoparse.com/
https://www.httrack.com/
https://chrome.google.com/webstore/detail/scraper/mbigbapnjcgaffohmbkdlecaccepngjd
https://addons.mozilla.org/en-US/firefox/addon/outwit-hub/
http://visualscraper.blogspot.hk/
https://www.parsehub.com/
https://scrapinghub.com/
https://webhose.io/
https://dexi.io/
https://www.import.io/
https://www.spinn3r.com/
โ โ โ U๐๐ปโบ๐ซฤ๐ฌ๐โ โ โ โ
Cyotek
Cyotek WebCopy - Copy websites locally for offline browsing โข Cyotek
Cyotek WebCopy is a free tool for automatically downloading the content of a website onto your local device.
WebCopy will scan the specified website and download its content. Links to resources such as style-sheets, images, and other pages in the websiteโฆ
WebCopy will scan the specified website and download its content. Links to resources such as style-sheets, images, and other pages in the websiteโฆ
Forwarded from UNDERCODE NEWS