Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Bug when posting/editing posts

EDIT: I know why it is happening and how to fix it, I just wanted to point out that it [b]is happening and it is annoying.[/b]

For some reason everytime I post something on a thread or edit a post I get a captcha to verify I am human. No big deal. I click the checkbox when I am done. But when I edit a post (not full edit but normal edit where you stay on the thread and a textbox replaces your post) I get this when I am done editing:

Fairly big image (Click to View)

There is no way to scroll, no way to recover the edited post, and no way to enter the captcha. Can be frustrating.
Try clearing your browser cache and cookies, log back in to HF, and wait a few minutes before trying to do anything. You are triggering a security feature.
As the user above me said, you are getting flagged by the security measures HF has. If you manage to find out what's triggering it, your problem will be solved all together.
[Image: hW3Ktfp.png]
I know WHAT it is, guys, but it is annoying as I couldn't edit my post. I am explaining a BUG with it, not complaining it happens.
(Apr 22, 2017 08:39 AM)Ninja Wrote:  I know WHAT it is, guys, but it is annoying as I couldn't edit my post. I am explaining a BUG with it, not complaining it happens.

It's intentional. Not really a bug.
(Apr 22, 2017 08:40 AM)webdev77 Wrote:  It's intentional. Not really a bug.

I don't think it's intentional though, as it says HF wants a verification but the verification checkbox isn't there.
It is a bug but it's resolvable by finding out what triggers security and avoiding that.
[Image: hW3Ktfp.png]
(Apr 22, 2017 08:44 AM)Vitani Wrote:  I don't think it's intentional though, as it says HF wants a verification but the verification checkbox isn't there.
It is a bug but it's resolvable by finding out what triggers security and avoiding that.

Do you have an adblocker or tampermonkey or any other extensions that can change web page content?
I get this same thing when editing very large posts using quick edit. You should try using full edit.
I can't guess at your plugins and settings for your browser that might prevent the captcha image from appearing.
(Apr 22, 2017 02:04 PM)Omniscient Wrote:  I can't guess at your plugins and settings for your browser that might prevent the captcha image from appearing.

Chrome with default settings I guess. No plugins. Never had this before either.

Only thing that did changes was I used mobile tethering to use my phone's mobile data connection as my wifi was down.
The only way to fix this is to view the source of the page, recover your text then click "preview post" then post it there or do "full edit"

Code
#!perl
####################################################################
#
#                 SSSSSSS     SSSSSSS     BBBBBBB
#                S       S   S       S    B      B
#                S           S            B      B
#                 SSSSSSS     SSSSSSS     BBBBBBB
#                        S           S    B      B
#                S       S   S       S    B      B
#                 SSSSSSS     SSSSSSS     BBBBBBB
#
# Delete files older than 7 weeks from c:\Temp and d:\temp - $Revision: 1 $
# ReEnable swd
####################################################################
#
# $History: startup.pl $
#
# *****************  Version 1  *****************
# User: Gpagliar     Date: 13/03/08   Time: 2:07p
# Created in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles
#
# *****************  Version 7  *****************
# User: Klwillia     Date: 3/10/07    Time: 11:40a
# Updated in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles
# V 600.031.000
# Fixed logic in setup.pl to recognise routerdhcp config. This only
# affects New Store Builds.
#
# *****************  Version 6  *****************
# User: Mhughes      Date: 10/01/07   Time: 4:03p
# Updated in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles
#
# *****************  Version 5  *****************
# User: Mhughes      Date: 13/11/06   Time: 2:57p
# Updated in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles
#
# *****************  Version 1  *****************
# User: Mhughes      Date: 11/10/06   Time: 9:59a
# Created in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles/INSTALLBASEADMIN/InstallBaseAdmin 600.016.010
#
# *****************  Version 3  *****************
# User: Gpagliar     Date: 14/09/06   Time: 2:07p
# Updated in $/StoreSystemsBuild/Packages/All Brands/New/InstallBaseAdmin/SourceFiles
#
# *****************  Version 1  *****************
# User: Mhughes      Date: 10-08-05   Time: 2:39p
# Created in $/StoreSystemsBuild (DO NOT USE)/Packages/All Brands/W2K3_XP/InstallBaseAdmin/SourceFiles
#
# MHughes 7/10/2004 Updated to include password change
#
# MHughes 8/7/2004 Inital Version
#
####################################################################

require "NT.ph";
use Win32;
use Win32::Registry;
use Win32::AdminMisc;
use CML;

#####################
# C O N S T A N T S #
#####################

$Install       = 0;
$TryAgain      = 1;
$NoInstall     = 2;
$KillUser      = 3;
$NoKillUser    = 4;
$SWDHome       = "usr/local/swd";
$SystemRootdir = $ENV{systemroot};
$System32dir   = $ENV{systemroot}."/system32";
$MaxSizeOfLogFile   = 250000;

#########################
# S U B R O U T I N E S #
#########################

sub OpenLog {

   local $log, $limit;

   $log = $_[0];
   $limit = 50000;

   ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blo​cks) = stat($log);
   if ($size > $limit) {
      if (-f $log.".2") { unlink $log.".2"; }
      open(S,"<$log"); open(D,">$log.2"); while (<S>) { print D $_; } close(D); close(S);
      open(LOG,">$log");
   }
   else {
      open(LOG,">>$log");
   }

}

sub AgeLogFile {

   #
   # If the log file has reached the maximum size then age it.
   #

   $LogFile = "$SWDDrive:\\usr\\local\\logs\\Startup.log";

   ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blo​cks) = stat($LogFile);
   if ($size > $MaxSizeOfLogFile) {
      if (-f "$LogFile.5") { unlink("$LogFile.5"); }
      if (-f "$LogFile.4") { rename("$LogFile.4","$LogFile.5"); }
      if (-f "$LogFile.3") { rename("$LogFile.3","$LogFile.4"); }
      if (-f "$LogFile.2") { rename("$LogFile.2","$LogFile.3"); }
      open(S,"<$LogFile"); open(D,">$LogFile.2"); while (<S>) { print D $_; } close(D); close(S);
      open(S,">$LogFile"); close(S);
   }

}

sub Log {

   @g = localtime time;
   printf LOG "%02d%02d/%02d/%02d %02d:%02d:%02d  $_[0]\n", sprintf("%02d",(substr sprintf("%03d",$g[5]), 0, 1) + 19),(substr sprintf("%03d",$g[5]), 1, 2),$g[4]+1,$g[3],$g[2],$g[1],$g[0];
   printf "%02d%02d/%02d/%02d %02d:%02d:%02d  $_[0]\n", sprintf("%02d",(substr sprintf("%03d",$g[5]), 0, 1) + 19),(substr sprintf("%03d",$g[5]), 1, 2),$g[4]+1,$g[3],$g[2],$g[1],$g[0];

}

sub ExitIfAlreadyRunning {

    # If this script is already running then don't run again.

    my ($LockFile) = 'c:\temp\startup.lck';

    unlink($LockFile);
    if (-f $LockFile) {
        exit;
    }
    else {
        # Opening the lock file for output will prevent it being deleted until we exit
        open(LOCK,">$LockFile");
    }

}

sub GetSystemInfo {

   $p = 'SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName';
   Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&KEY_QUERY_VALUE,$hkey);
   Win32::RegQueryValueEx($hkey,"ComputerName",&NULL,$type,$ComputerName);
   Win32::RegCloseKey($hkey);

   $p = 'SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon';
   Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&KEY_QUERY_VALUE,$hkey);
   Win32::RegQueryValueEx($hkey,"CachePrimaryDomain",&NULL,$type,$NTDomain);
   Win32::RegCloseKey($hkey);

   $p = 'SOFTWARE\CML';
   Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&KEY_QUERY_VALUE,$hkey);
   Win32::RegQueryValueEx($hkey,"ApplicationServer",&NULL,$type,$ApplicationServer);
   Win32::RegQueryValueEx($hkey,"SystemType",&NULL,$type,$SystemType);
   Win32::RegQueryValueEx($hkey,"ServerType",&NULL,$type,$ServerType);
   Win32::RegQueryValueEx($hkey,"EnvironmentType",&NULL,$type,$EnvironmentType);
   Win32::RegQueryValueEx($hkey,"WorkStationType",&NULL,$type,$WorkStationType);
   Win32::RegQueryValueEx($hkey,"MachineRole",&NULL,$type,$WSType);
   Win32::RegCloseKey($hkey);

   $p = 'SYSTEM\CurrentControlSet\Control\ProductOptions';
   Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&KEY_QUERY_VALUE,$hkey);
   Win32::RegQueryValueEx($hkey,"ProductType",&NULL,$type,$OSProduct);
   Win32::RegCloseKey($hkey);

   $p = 'Software\Microsoft\Windows NT\CurrentVersion';
   Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&KEY_QUERY_VALUE,$hkey);
   Win32::RegQueryValueEx($hkey,"CurrentType",&NULL,$type,$OSType);
   Win32::RegQueryValueEx($hkey,"CurrentBuildNumber",&NULL,$type,$OSBuild);
   Win32::RegQueryValueEx($hkey,"CurrentVersion",&NULL,$type,$OSVersion);
   Win32::RegQueryValueEx($hkey,"CSDVersion",&NULL,$type,$OSServicePack);
   Win32::RegCloseKey($hkey);

   $IsNT4 = 0;
   if ($OSVersion=~ /4.0/) {
      $IsNT4 = 1;
   }

   $IsWin2K = 0;
   if ($OSVersion =~ /5.0/) {
      $IsWin2K = 1;
   }

   $IsWinXP = 0;
   if ($OSVersion =~ /5.1/) {
      $IsWinXP = 1;
   }

   $IsWin2K3 = 0;
   if ($OSVersion =~ /5.2/) {
      $IsWin2K3 = 1;
   }

   #
   # Get current date
   #
   @t = localtime time;
   $Century = sprintf("%02d",(substr sprintf("%03d",$t[5]), 0, 1) + 19);
   $Year = substr(sprintf("%03d",$t[5]), 1, 2);
   $Month = $t[4]+1;  # 1-12
   $Day = $t[3];      # 1-31
   $Hour = $t[2];

   $BusinessCode = substr($ComputerName,0,1);

   $IsDevelopment = 0;
   $IsTest = 0;
   $IsProduction = 0;
   if ($EnvironmentType eq "Development") {
      $IsDevelopment = 1;
   }
   elsif ($EnvironmentType eq "Test") {
      $IsTest = 1;
   }
   else {
      $IsProduction = 1;
   }

   $IsApplicationServer = 0;
   if ($ComputerName =~ /NA001/) {
      $IsApplicationServer = 1;
   }

   $IsServer = 0;
   $SWDDrive = "C";
   if ($SystemType eq "Server") {
      $IsServer = 1;
      $SWDDrive = "E";
   }

   $IsOtherServer = 0;
   if ($IsServer && ! $IsApplicationServer) {
      $IsOtherServer = 1;
   }

   $IsWorkStation = 0;
   if ($SystemType eq "WorkStation") {
      $IsWorkStation = 1;
   }

   $IsPOSWorkStation = 0;
   if ($IsWorkStation && $WorkStationType eq "POS") {
      $IsPOSWorkStation = 1;
   }

   $IsPOSBOWorkStation = 0;
   if ($IsWorkStation && $WorkStationType eq "POSBO") {
      $IsPOSBOWorkStation = 1;
   }

   $IsBOWorkStation = 0;
   if ($IsWorkStation && $WorkStationType eq "BO") {
      $IsBOWorkStation = 1;
   }

   $IsGRKWorkStation = 0;
   if ($IsWorkStation && $WorkStationType eq "GRK") {
      $IsGRKWorkStation = 1;
   }

   $IsKmart = 0;
   if ($ComputerName =~ /^K/) {
      $IsKmart = 1;
   }

   $IsSupermarkets = 0;
   if ($ComputerName =~ /^S/) {
      $IsSupermarkets = 1;
   }

   $IsMGB = 0;
   if ($ComputerName =~ /^M/) {
      $IsMGB = 1;
   }

   $IsTarget = 0;
   if ($ComputerName =~ /^T/) {
      $IsTarget = 1;
   }

   $IsLiquor = 0;
   if ($ComputerName =~ /^L/) {
      $IsLiquor = 1;
   }

   $IsOWKS = 0;
   if ($ComputerName =~ /^O/) {
      $IsOWKS = 1;
   }
}

sub PasswordChange {
   if ($EnvironmentType ne "") {
       Log "  Changing passwords on local system";
       $Account = "hjsimpson";
       if ($IsNT4) {
           $Password = CML::GetPassword($EnvironmentType,$BusinessCode,$Account,$Day,$Month,$Century,$Y​ear);
           $rc = Win32::AdminMisc::SetPassword($ComputerName,$Account,$Password);
           Log "  $rc = Win32::AdminMisc::SetPassword($ComputerName,$Account,\$Password)";
       }
       else {
           $rc = system("$SWDDrive:/usr/local/bin/setpassword.exe $Account");
           Log "  $rc = System(\"$SWDDrive:/usr/local/bin/setpassword.exe $Account\")";
       }
   }
}

########
# MAIN #
########

GetSystemInfo();
ExitIfAlreadyRunning();
AgeLogFile();

OpenLog("$SWDDrive:\\usr\\local\\logs\\Startup.log");

Log "";
Log "##################### $ScriptVersion ########################";
Log "StartUp Script Started on $ComputerName";

#   delete the reboot.ini file to re-enable swd

if (-f"$SWDDrive:/$SWDHome/etc/reboot.ini"){
    unlink ("$SWDDrive:/$SWDHome/etc/reboot.ini");
    Log "   Re Enabling SWD";
}

PasswordChange();

close(LOG);


Try paste that in [code] [/ code] and it will give you the error.
This occurs to me every once in a while and clearing my cache/deleting cookies always fixes it. Not sure why it's still happening after doing those two combined.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ~~((HACKER))~~Aug 25, 2020 10:08 AM 13 323 Aug 25, 2020 10:08 AM
Last Post: ~~((HACKER))~~
by BradleyJNov 27, 2019 11:20 AM 5 210 Nov 27, 2019 11:20 AM
Last Post: Omniscient
by DreddDec 19, 2018 12:40 PM 2 280 Dec 19, 2018 12:40 PM
Last Post: Dredd