Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Reduce the size of binary files and remove the net module. #281

Open
1 task done
moonD4rk opened this issue Jan 16, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@moonD4rk
Copy link
Owner

moonD4rk commented Jan 16, 2024

Feature Description

By using the "goweight" command to check the size of binary files, it was found that the "net" module occupies a relatively large size. Here we try to find and remove its dependencies that reference the "net" module.

$ goweight . | head -n 20
   12 MB runtime
  8.8 MB github.com/mattn/go-sqlite3
  4.2 MB net
  3.5 MB github.com/syndtr/goleveldb/leveldb
  3.2 MB github.com/urfave/cli/v2
  2.9 MB reflect
  2.3 MB math/big
  2.1 MB golang.org/x/sys/unix
  1.8 MB syscall
  1.6 MB testing
  1.6 MB github.com/russross/blackfriday/v2
  1.5 MB database/sql
  1.5 MB text/template
  1.5 MB encoding/json
  1.4 MB text/template/parse
  1.3 MB time
  1.2 MB vendor/golang.org/x/net/dns/dnsmessage
  1.2 MB log/slog
  1.2 MB internal/abi
  1.1 MB os

Why is this feature needed?

Reducing the size of binary files makes it easier to load them into shellcode.

Checklist

Screenshots/Videos

If applicable, add screenshots or videos to help explain your proposal.

Additional Context

Add any other context or screenshots about the feature request here.

@moonD4rk moonD4rk added the enhancement New feature or request label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant