rofl0r / rofl0r/proxychains-ng

The quiet mode (-q) does not work in some case

Open
#135 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

The quiet mode (-q) does not work in some case on my computer (OS X 10.11 with csrutil enable --without debug).

For example, when i running proxychains -q emacs, the message [proxychains] DLL init: proxychains-ng 4.11 appears in the content which retrieved from system clipboard every time.

Where the [proxychains] DLL init: proxychains-ng 4.11 from? I did a little bit changes to print proxychains_quiet_mode value in console, then i got these:

$ proxychains4 -q npm install
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng
[proxychains] [quiet=0] DLL init: proxychains-ng

Following are the installation procedures and scripts:

$ brew install ~/scratch/proxychains-ng.rb --HEAD
$ cat ~/scratch/proxychains-ng.rb
class ProxychainsNg < Formula
  desc "Hook preloader"
  homepage "https://sourceforge.net/projects/proxychains-ng/"
  url "https://downloads.sourceforge.net/project/proxychains-ng/proxychains-ng-4.11.tar.bz2"
  sha256 "dcc4149808cd1fb5d9663cc09791f478805816b1f017381f424414c47f6376b6"

  head "https://github.com/rofl0r/proxychains-ng.git"

  bottle do
    sha256 "3a54f2ae04b107b97db3a0522f06cc77c0420bf7a562a07d4938c209e34d53ca" => :el_capitan
    sha256 "336d042fcdef471d60bca6233c834db94b85c911425efba8bf442b6affc0db00" => :yosemite
    sha256 "2707450f3238082aeef0884770eabae0167d17c1029840a5ab48db0af320b254" => :mavericks
  end

  option :universal

  def install
    args = ["--prefix=#{prefix}", "--sysconfdir=#{prefix}/etc"]
    if build.universal?
      ENV.universal_binary
      args << "--fat-binary"
    end
    system "./configure", *args
    system "make"
    system "make", "install"
    system "make", "install-config"
  end

  test do
    assert_match "config file found", shell_output("#{bin}/proxychains4 test 2>&1", 1)
  end

  patch :DATA
end
__END__
diff --git a/src/libproxychains.c b/src/libproxychains.c
index 1240448..882eb23 100644
--- a/src/libproxychains.c
+++ b/src/libproxychains.c
@@ -122,7 +122,7 @@ static void do_init(void) {
    get_chain_data(proxychains_pd, &proxychains_proxy_count, &proxychains_ct);
    DUMP_PROXY_CHAIN(proxychains_pd, proxychains_proxy_count);

-   proxychains_write_log(LOG_PREFIX "DLL init: proxychains-ng %s\n", proxychains_get_version());
+   proxychains_write_log(LOG_PREFIX "[quiet=%d] DLL init: proxychains-ng %s\n", proxychains_quiet_mode, proxychains_get_version());

    setup_hooks();

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with proxychains4 -q npm install on the stated OS X setup, then read src/libproxychains.c around do_init() and the proxychains_quiet_mode value shown in the issue. Done means the quiet-mode invocation no longer emits the DLL initialization message, including when output is retrieved from the system clipboard.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.