Giter Site home page Giter Site logo

postrequest / link Goto Github PK

View Code? Open in Web Editor NEW
544.0 12.0 90.0 1.5 MB

link is a command and control framework written in rust

License: GNU Affero General Public License v3.0

Rust 99.38% Shell 0.62%
c2 command-and-control red-team implant penetration-testing payload pentesting rust

link's People

Contributors

postrequest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

link's Issues

Help me how to fix this error. Thx.

virtual-machine:~/link$ ./link

                                .-') _       .-. .-')   
                               ( OO ) )      \  ( OO )  

,--. ,-.-') ,--./ ,--,' ,--. ,--.
| |.-') | |OO) | \ | |\ | .' /
| | OO ) | | \ | | | ) | /,
| |-' | | |(_/ | . |/ | ' _) (| '---.' ,| |_.' | |\ | | . \ | | (_| | | | \ | | |\ \ ------' --' --' --' --' '--'
Start web server (Y/n)? Y
starting server
Please provide bind address (eg: 0.0.0.0:443): 0.0.0.0:8443
πŸ”— > generate 0.0.0.0:8443
please wait...
link successfully built
No such file or directory (os error 2)
No such file or directory (os error 2)
Could not find DLL

=================================================================
virtual-machine:~/link$ cargo build --release --target x86_64-pc-windows-gnu
Compiling openssl-sys v0.9.80
Compiling serde v1.0.154
error: failed to run custom build command for openssl-sys v0.9.80

Caused by:
process didn't exit successfully: /link/target/release/build/openssl-sys-f925c2be46c076e2/build-script-main (exit status: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rustc-cfg=openssl
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_GNU_OPENSSL_LIB_DIR
X86_64_PC_WINDOWS_GNU_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_GNU_OPENSSL_INCLUDE_DIR
X86_64_PC_WINDOWS_GNU_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_GNU_OPENSSL_DIR
X86_64_PC_WINDOWS_GNU_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset

--- stderr
thread 'main' panicked at '

Could not find directory of OpenSSL installation, and this -sys crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the OPENSSL_DIR environment variable for the
compilation process.

Make sure you also have the development packages of openssl installed.
For example, libssl-dev on Ubuntu or openssl-devel on Fedora.

If you're in a situation where you think the directory should be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.

$HOST = x86_64-unknown-linux-gnu
$TARGET = x86_64-pc-windows-gnu
openssl-sys = 0.9.80

', /.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.80/build/find_normal.rs:191:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

generate-osx issue

πŸ”— > generate-osx xxx:xxx
first osx link build will take time
building osx cross compilation dependencies
osxcross cloned
OSX 10.11 SDK downloaded
updated clang build
building osxcross... this will take a while
osxcross built
please wait...
No such file or directory (os error 2)
No such file or directory (os error 2)

I have this issue on macOS, Kali, CentOS

Cannot load amsi.dll Failed

image
A Shell pop up when I use sharp SharpKatz --Command logonpasswords.
then error shows Cannot load amsi.dll Failed pMethodInfo->Invoke_3 w/hr 0x80131604.
How can i fix it?

i can not run it

Please provide bind address (eg: 0.0.0.0:443): 0.0.0.0:443
thread '' panicked at 'called Result::unwrap() on an Err value: ErrorStack([Error { code: 33558530, library: "system library", function: "fopen", reason: "No such file or directory", file: "../crypto/bio/bss_file.c", line: 288, data: "fopen('cert/key.pem','r')" }, Error { code: 537346050, library: "BIO routines", function: "file_ctrl", reason: "system lib", file: "../crypto/bio/bss_file.c", line: 290 }, Error { code: 336265218, library: "SSL routines", function: "SSL_CTX_use_PrivateKey_file", reason: "system lib", file: "../ssl/ssl_rsa.c", line: 521 }])', src/server/spawn.rs:34:14

What is the reason for this error?

`root@CzTeam:~/LinkAkihi/link-main# ./target/release/link

                                .-') _       .-. .-')
                               ( OO ) )      \  ( OO )

,--. ,-.-') ,--./ ,--,' ,--. ,--.
| |.-') | |OO) | \ | |\ | .' /
| | OO ) | | \ | | | ) | /,
| |-' | | |(_/ | . |/ | ' _) (| '---.' ,| |_.' | |\ | | . \ | | (_| | | | \ | | |\ \ ------' --' --' --' --' '--'
Start web server (Y/n)? y
starting server
Please provide bind address (eg: 0.0.0.0:443): 【Cloud server public network IP】:19991
Could not bind to 【Cloud server public network IP】:19991: Cannot assign requested address (os error 99)
`
What is the reason for this error?

rustup does not have x86_64-pc-windows-gnu target

Hi, when I try to generate a windows link I get:

> generate 10.10.10.10:8443
rustup does not have x86_64-pc-windows-gnu target, the following command may help:
rustup target add x86_64-pc-windows-gnu

However, I do. Here's my cargo config. Any tip?

$ cat .cargo/config 
[target.x86_64-pc-windows-gnu]
linker = "/usr/bin/x86_64-w64-mingw32-gcc"
ar = "/usr/x86_64-w64-mingw32/bin/ar"

Thank you.

No response

After executing the shell ifconfig, there is no response. At the same time, I have been in the simulation environment (the target is win10) for 3 hours, and there is no response when I enter the command, but it shows the active state
ζ•θŽ·
.

kali can not run it

when finished all install
./link run it
it feedfack erros like:
im not use root to install it

Please provide bind address (eg: 0.0.0.0:443):
thread '' panicked at 'called Result::unwrap() on an Err value: ErrorStack([Error { code: 33558530, library: "system library", function: "fopen", reason: "No such file or directory", file: "../crypto/bio/bss_file.c", line: 288, data: "fopen('cert/key.pem','r')" }, Error { code: 537346050, library: "BIO routines", function: "file_ctrl", reason: "system lib", file: "../crypto/bio/bss_file.c", line: 290 }, Error { code: 336265218, library: "SSL routines", function: "SSL_CTX_use_PrivateKey_file", reason: "system lib", file: "../ssl/ssl_rsa.c", line: 521 }])', src/server/spawn.rs:34:14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

i can't find any information from google!

thanks for your response?^_^ Have a nice day !

Update dependencies to fix vulnerabilities

Hello,

Running cargo audit against the project raises 3 vulnerabilities from dependencies:

β”Œβ”€β”€(kaliγ‰Ώkali)-[~/link]
└─$ cargo audit              
    Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
      Loaded 461 security advisories (from /home/kali/.cargo/advisory-db)
    Updating crates.io index
    Scanning Cargo.lock for vulnerabilities (245 crate dependencies)
Crate:     nix
Version:   0.19.1
Title:     Out-of-bounds write in nix::unistd::getgrouplist
Date:      2021-09-27
ID:        RUSTSEC-2021-0119
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0119
Solution:  Upgrade to ^0.20.2 OR ^0.21.2 OR ^0.22.2 OR >=0.23.0
Dependency tree:
nix 0.19.1
└── rustyline 7.1.0
    └── link 0.1.0

Crate:     time
Version:   0.1.44
Title:     Potential segfault in the time crate
Date:      2020-11-18
ID:        RUSTSEC-2020-0071
URL:       https://rustsec.org/advisories/RUSTSEC-2020-0071
Solution:  Upgrade to >=0.2.23
Dependency tree:
time 0.1.44
└── chrono 0.4.22
    └── link 0.1.0

Crate:     tokio
Version:   0.2.25
Title:     Data race when sending and receiving after closing a `oneshot` channel
Date:      2021-11-16
ID:        RUSTSEC-2021-0124
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0124
Solution:  Upgrade to >=1.8.4, <1.9.0 OR >=1.13.1
Dependency tree:
tokio 0.2.25
β”œβ”€β”€ trust-dns-resolver 0.19.7
β”‚   └── actix-connect 2.0.0
β”‚       └── actix-http 2.2.2
β”‚           β”œβ”€β”€ awc 2.0.3
β”‚           β”‚   └── actix-web 3.3.3
β”‚           β”‚       └── link 0.1.0
β”‚           └── actix-web 3.3.3
β”œβ”€β”€ trust-dns-proto 0.19.7
β”‚   β”œβ”€β”€ trust-dns-resolver 0.19.7
β”‚   └── actix-connect 2.0.0
β”œβ”€β”€ tokio-util 0.3.1
β”‚   β”œβ”€β”€ h2 0.2.7
β”‚   β”‚   └── actix-http 2.2.2
β”‚   └── actix-codec 0.3.0
β”‚       β”œβ”€β”€ awc 2.0.3
β”‚       β”œβ”€β”€ actix-web 3.3.3
β”‚       β”œβ”€β”€ actix-utils 2.0.0
β”‚       β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”œβ”€β”€ actix-tls 2.0.0
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚   └── actix-http 2.2.2
β”‚       β”‚   β”œβ”€β”€ actix-server 1.0.4
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚   └── actix-testing 1.0.1
β”‚       β”‚   β”‚       └── actix-web 3.3.3
β”‚       β”‚   β”œβ”€β”€ actix-http 2.2.2
β”‚       β”‚   └── actix-connect 2.0.0
β”‚       β”œβ”€β”€ actix-tls 2.0.0
β”‚       β”œβ”€β”€ actix-server 1.0.4
β”‚       β”œβ”€β”€ actix-http 2.2.2
β”‚       └── actix-connect 2.0.0
β”œβ”€β”€ tokio-openssl 0.4.0
β”‚   β”œβ”€β”€ actix-tls 2.0.0
β”‚   └── actix-connect 2.0.0
β”œβ”€β”€ h2 0.2.7
β”œβ”€β”€ actix-rt 1.1.1
β”‚   β”œβ”€β”€ awc 2.0.3
β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚   β”œβ”€β”€ actix-utils 2.0.0
β”‚   β”œβ”€β”€ actix-testing 1.0.1
β”‚   β”œβ”€β”€ actix-server 1.0.4
β”‚   β”œβ”€β”€ actix-http 2.2.2
β”‚   └── actix-connect 2.0.0
└── actix-codec 0.3.0

Crate:     net2
Version:   0.2.37
Warning:   unmaintained
Title:     `net2` crate has been deprecated; use `socket2` instead
Date:      2020-05-01
ID:        RUSTSEC-2020-0016
URL:       https://rustsec.org/advisories/RUSTSEC-2020-0016
Dependency tree:
net2 0.2.37
β”œβ”€β”€ miow 0.2.2
β”‚   └── mio 0.6.23
β”‚       β”œβ”€β”€ tokio 0.2.25
β”‚       β”‚   β”œβ”€β”€ trust-dns-resolver 0.19.7
β”‚       β”‚   β”‚   └── actix-connect 2.0.0
β”‚       β”‚   β”‚       └── actix-http 2.2.2
β”‚       β”‚   β”‚           β”œβ”€β”€ awc 2.0.3
β”‚       β”‚   β”‚           β”‚   └── actix-web 3.3.3
β”‚       β”‚   β”‚           β”‚       └── link 0.1.0
β”‚       β”‚   β”‚           └── actix-web 3.3.3
β”‚       β”‚   β”œβ”€β”€ trust-dns-proto 0.19.7
β”‚       β”‚   β”‚   β”œβ”€β”€ trust-dns-resolver 0.19.7
β”‚       β”‚   β”‚   └── actix-connect 2.0.0
β”‚       β”‚   β”œβ”€β”€ tokio-util 0.3.1
β”‚       β”‚   β”‚   β”œβ”€β”€ h2 0.2.7
β”‚       β”‚   β”‚   β”‚   └── actix-http 2.2.2
β”‚       β”‚   β”‚   └── actix-codec 0.3.0
β”‚       β”‚   β”‚       β”œβ”€β”€ awc 2.0.3
β”‚       β”‚   β”‚       β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚       β”œβ”€β”€ actix-utils 2.0.0
β”‚       β”‚   β”‚       β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚       β”‚   β”œβ”€β”€ actix-tls 2.0.0
β”‚       β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚       β”‚   β”‚   └── actix-http 2.2.2
β”‚       β”‚   β”‚       β”‚   β”œβ”€β”€ actix-server 1.0.4
β”‚       β”‚   β”‚       β”‚   β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚       β”‚   β”‚   └── actix-testing 1.0.1
β”‚       β”‚   β”‚       β”‚   β”‚       └── actix-web 3.3.3
β”‚       β”‚   β”‚       β”‚   β”œβ”€β”€ actix-http 2.2.2
β”‚       β”‚   β”‚       β”‚   └── actix-connect 2.0.0
β”‚       β”‚   β”‚       β”œβ”€β”€ actix-tls 2.0.0
β”‚       β”‚   β”‚       β”œβ”€β”€ actix-server 1.0.4
β”‚       β”‚   β”‚       β”œβ”€β”€ actix-http 2.2.2
β”‚       β”‚   β”‚       └── actix-connect 2.0.0
β”‚       β”‚   β”œβ”€β”€ tokio-openssl 0.4.0
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-tls 2.0.0
β”‚       β”‚   β”‚   └── actix-connect 2.0.0
β”‚       β”‚   β”œβ”€β”€ h2 0.2.7
β”‚       β”‚   β”œβ”€β”€ actix-rt 1.1.1
β”‚       β”‚   β”‚   β”œβ”€β”€ awc 2.0.3
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-web 3.3.3
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-utils 2.0.0
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-testing 1.0.1
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-server 1.0.4
β”‚       β”‚   β”‚   β”œβ”€β”€ actix-http 2.2.2
β”‚       β”‚   β”‚   └── actix-connect 2.0.0
β”‚       β”‚   └── actix-codec 0.3.0
β”‚       β”œβ”€β”€ mio-uds 0.6.8
β”‚       β”‚   β”œβ”€β”€ tokio 0.2.25
β”‚       β”‚   └── actix-server 1.0.4
β”‚       └── actix-server 1.0.4
└── mio 0.6.23

Crate:     stdweb
Version:   0.4.20
Warning:   unmaintained
Title:     stdweb is unmaintained
Date:      2020-05-04
ID:        RUSTSEC-2020-0056
URL:       https://rustsec.org/advisories/RUSTSEC-2020-0056
Dependency tree:
stdweb 0.4.20
└── time 0.2.27
    β”œβ”€β”€ cookie 0.14.4
    β”‚   └── actix-http 2.2.2
    β”‚       β”œβ”€β”€ awc 2.0.3
    β”‚       β”‚   └── actix-web 3.3.3
    β”‚       β”‚       └── link 0.1.0
    β”‚       └── actix-web 3.3.3
    β”œβ”€β”€ actix-web 3.3.3
    └── actix-http 2.2.2

Crate:     term
Version:   0.5.2
Warning:   unmaintained
Title:     term is looking for a new maintainer
Date:      2018-11-19
ID:        RUSTSEC-2018-0015
URL:       https://rustsec.org/advisories/RUSTSEC-2018-0015
Dependency tree:
term 0.5.2
└── prettytable-rs 0.8.0
    └── link 0.1.0

Crate:     link
Version:   0.1.0
Warning:   yanked
Dependency tree:
link 0.1.0

error: 3 vulnerabilities found!
warning: 4 allowed warnings found

BR,
Nariod

Could not find tool, even after running sharp init and re-installing link.

Interacting with the links works fine, but when I go to run something like sharp init svchost winPEAS it dumps could not find tool, at the main menu the following command may help: sharp init. Whenever I run that command it just prints updating sharpcollection and nothing changes. Am I doing something wrong?

generate fail for windows

πŸ”— > generate 1.1.1.1:443
please wait...
link successfully built
No such file or directory (os error 2)
No such file or directory (os error 2)
Could not find DLL

Could not find DLL

hi postrequest:
when i install it on my ubuntu 18.04 use default kali-install.sh
report """"Could not find DLL....""""
this error report sooo simple!

hava a nice day !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.