Golang

331

Solutions

778

Contributors

Golang, also called Go, is an open source programming language that is a statically-typed language with syntax loosely derived from C, adding automatic memory management, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library. Go is a general-purpose systems programming language that aims to be efficient both for development and execution with a focus on fast compilation and increased maintainability of large projects. Go was originally targeted at systems programming tasks such as building server/web applications, high throughput middleware and databases.

Share tech news, updates, or what's on your mind.

Sign up to Post

I've been tasked to resolve this vulnerability but i cant figure out where to even update this at. Where does one go on their servers to change this? Its flagged for our email domain.

Mail.domaiin.com

Vulnerability Class Improper Input Handling
Additional Information host_header
Status Open
URL - Mail.domain.com
Rating Medium (customized)
Opened 2018-07-17 06:38:56 -0700

Custom Solution In Apache (http://httpd.apache.org/docs/trunk/vhosts/examples.html#defaultallports) and Nginx
(https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/) you can make SERVER_NAME trustworthy
which can be done by creating a dummy vhost that catches all requests with invalid Host headers. Another method under
Nginx is to specify a non-wildcard SERVER_NAME (http://nginx.org/en/docs/http/server_names.html) and under Apache
you can use a non-wildcard serverName (http://httpd.apache.org/docs/2.2/mod/core.html#servername) and turning the
UseCanonicalName directive on.

In IIS one method is to have proper bindings setup with a specified host header
(https://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding) so that if someone changes the host
header it will not reach the web site on IIS.

Alternatively, at the application level, you can attempt to validate any values coming from the Host or X-Forwarded-Host
request headers using a whitelist of acceptable values. You can also choose not to use host header values that come from
The …
1
Keep up with what's happening at Experts Exchange!
LVL 12
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Hi - I was wondering if someone can advise please. Our organisation uses a ERP systems which has 4000 Relations tables. There is a discussions on creating a master database - where any changes to these tables are populated into Master database. I am worried about this approach - for example, there is no business logic and any changes gets sent to this MD, which is used for integration with other systems? I would have thought you use master database to bring in data from various systems rather than just duplicating one system into another.

The argument for creating a master database is so there is no need for peer to peer integration - I agree peer to peer is not good but thats what what BizTalk is there for. They want to use BizTalk to pull data from the ERP into Master Database and then use SSIS to push data out to other systems. I can't see why they can't they just use BizTalk to transform the data and push the data out. Their other argument if the ERP system ever goes cloud it is not possible to do a full extract (i.e, not delta extract) using SSIS - but the issue nobody even know if we will ever even go hosted solution for the ERP we have. Additionally, even in such a case if there is a good business case I am sure the cloud prvoide will let SSIS access directly to database on the hosted cloud. Do you agree? Can you give your inputs on the flaws with this approach or is it just me worrying?

Thank you.
0
I am interested in finding out if a lawyer has manipulated the will of my mother, who has since passed. He sent me a copy of it by email and wondering if there is any way to forensically inspect the document? I saw a previous answer that said you could go into "inspect" the document to detect changes? Please any info appreciated!
0
I asked about my Confirmation Email not getting thru using gmail, aol, yahoo and outlook. These are 2 answers I received, but I am not a programmer..... Can someone help me?

Response 1 :
Sounds like spam filtering.
Have you got an SPF record setup for your email domain that shows the GoDaddy servers as acceptable senders? If not, this could be causing emails to go into junk folders or be blocked altogether on systems like Gmail, AOL, etc.
GoDaddy emails are likely fine as it sees the emails coming from their own servers

Response 2 :
"A" has already mentioned spam filtering as the likely cause and I tend to agree. One thing to bear in mind is how you're actually generating email. If you're just using the basic mail() functionality within PHP, then that often gets tagged as spam, because it's very easy to miss out valid headers. The email you send does then tend to look like it's been auto-generated by a script (aka SPAM).
When sending email from PHP, I would suggest you look at something like the PHPMailer library. It gives you a lot more config options and it may help to make your emails appear as 'more genuine' to the mail servers.
0
hi there,

Currently I'm trying to create, sign & broadcast bitcoin transaction using btcsuite. For start, I've already had testnet3 address & its associated privatekey for testing. However, hunting through the post and articles like below:-

https://www.thepolyglotdeveloper.com/2018/03/create-sign-bitcoin-transactions-golang/
https://github.com/prettymuchbryce/hellobitcoin/blob/master/transaction.go
https://github.com/btcsuite/btcd/issues/1164

The solution proposed above its not complete, for first one, it only covers until signing (i knew the author claimed its not broadcastable unless you provide the utxo which i did if i'm right) but when tried to braodcast it failed with message

"Error validating transaction: Transaction be9b294695bfb201a5cff32af074a4bf72b073e3c9dad1969111165bf118a622 orphaned, missing reference f0c0d3b3eecf911ede996a74ceadc9366068791450c9e6bacee9ae202f3690d1."

I have no idea what's going on and I suspect its script is incompatible.

So, the bottom line is I just want a workable example in bitcoin testnet3 that shows "from 1 address transfer some bitcoin to other address" by showing the process of creating raw transaction, sign it with private key, turn it to raw transaction in hex format & broadcast it using something like https://live.blockcypher.com/btc/pushtx/ (BTC testnet)

currently my code is as follow:-

package main
import (
    "fmt"
    "encoding/hex"
    "bytes"
    "github.com/btcsuite/btcutil"
    btcchain 

Open in new window

0
Can we make the macro first time I press it, to go from a1 to a102 and then after that it goes every 100 rows so next would be 202, 302 and so on.
Can you provide a macro to do the opposite? to go up 100 rows? and a macro to go to the top
0
I cant find the homegroup on either of my 2 laptops at all.
when I search I get offered go do a sync
How do I create homegroups or what do I need to do so
that the homegroup options Is available to work with?
what  or where do any settings or options need changed?
HELP
0
Hi
I'd like to install tkinter in my Pycharm

I go to preferences and hit the + install button and there are a chunk of tkinter installs to consider.

Does it matter which one I choose?

Thanks
0
I am trying to replicate my Active directory DC and my exchange server to a Virtual server still within my Site. Please I need direction on how to go about it .
Note: the AD server is a Windows 2012 R2.  The exchange is 2013
0
Hi,

Encountered this error "WARNING: The object has been corrupted, and it's in an inconsistent
state. The following validation errors happened:
WARNING: The primary SMTP address, "SMTP:", is not valid.

When moving DB1 to new DB4 for white space cleanup. See attached error as well. Ps advice. Tks

Troubleshoot:
1. Find user mailbox > Exchange 2010 Warming: The properties on this object have invalid data. If you click OK. Default values will be used instead and will save.
2. Click OK > E-Mail-Addresses > Tried to change to smrt.com.sg but with error. The primary SMTP address is not valid. Click OK
3. Observed user mailbox Last logged on by: empty, Total item: empty, Sizke (KB): empty.
4. Go ADSI Edit to edit
5. When back to user mailbox to unchecked Automatically update email addresses based on email address policy and error in below.
   at Microsoft.ManagementConsole.Internal.SnapInMessagePumpProxy.OnThreadException(Object sender, ThreadExceptionEventArgs e)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.WndProcException(Exception e)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 …
0
Cloud Class® Course: Certified Penetration Testing
LVL 12
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

I have another strange problem when trying to save related tables in C# , I keep on receiving an error as below

PersonID is not nullable


Where do I go wrong ???

When I detach the table to remain with a single table everything works okay, I can change data, delete and add new data without problem.

How do I get rid of this not null-able thing
RelatedTable.docx
0
Suddenly I have experienced a problem after logging into Yahoo.  Upon scrolling down to view their headline news, there is a little square at the bottom of the screen, and I can't go any further.  

I am using Windows 7 Professional and Google Chrome for a browser.  I've attached a file that shows the little square icon in the middle of the screen.  I couldn't find anything about this on YouTube, and hoping someone has a procedure I might try.
0
I have a script, included, which will update statistics on more than 'DBO' and 'SYS' schemas of a database.
I would like to use this script on all databases using the MSFOREACHDB syntax, but can't figure it out.
Could someone add the MSFOREACHDB to my existing script?


SET NOCOUNT ON
GO

DECLARE updatestats CURSOR FOR
SELECT table_schema, table_name  
FROM information_schema.tables
   where TABLE_TYPE = 'BASE TABLE'
OPEN updatestats

DECLARE @tableSchema NVARCHAR(128)
DECLARE @tableName NVARCHAR(128)
DECLARE @Statement NVARCHAR(300)

FETCH NEXT FROM updatestats INTO @tableSchema, @tableName

WHILE (@@FETCH_STATUS = 0)
BEGIN
   PRINT N'UPDATING STATISTICS ' + '[' + @tableSchema + ']' + '.' + '[' + @tableName + ']'
   SET @Statement = 'UPDATE STATISTICS '  + '[' + @tableSchema + ']' + '.' + '[' + @tableName + ']' + '  WITH FULLSCAN'
   --PRINT @Statement
   EXEC sp_executesql @Statement
   FETCH NEXT FROM updatestats INTO @tableSchema, @tableName
END

CLOSE updatestats
DEALLOCATE updatestats
GO
SET NOCOUNT OFF
GO

I have a snippet from another piece of code, but it doesn't seem to cycle through each database -
DECLARE @Database VARCHAR(255)  
DECLARE @Table VARCHAR(255)  
DECLARE @cmd NVARCHAR(500)  
DECLARE @fillfactor INT

SET @fillfactor = 90
Begin

DECLARE DatabaseCursor CURSOR FOR  
SELECT      Name
FROM      master..sysdatabases
WHERE Name NOT IN ('Master', 'MSDB', 'Tempdb', 'Model)      
AND DATABASEPROPERTYEX(name,'status')='ONLINE'…
0
Exchange 2010 SP3 Roll up 10, Outlook 2016.

I have an administrative user that maintains the calendar for the owner, working from her computer to his shared calendar. She, using the default meeting request, is able to schedule meetings in his calendar and the invite goes out as him.

Recently, we have had an issue with users forwarding invites (for informational purposes) to other users. This adds the other user to the invitee list, and changes every recurring event on the calendar. This creates a mess.

I have created a custom form that does not allow forwarding of the invites. This is working well. The administrative assistant can use the custom form to create the meeting, and invitees cannot forward it. Problem is, now the invitations go out as " {Administrative Assistant} on behalf of {Owner} ". This is not what we want. We want the invitation to go out as the owner's invite. What am I missing on the new custom form? She selects the form from NEW ITEMS/MORE ITEMS/CHOOSE FORM. It is saved in the Organization Forms folder.
0
I would like to learn Exchange 2013 autodiscovery Funktion. Can you please help me to configure my Exchange Server that can use autodiscovery.

for that i installed Exchange Server 2013 .It works very good. i can send and receive mail and also i can Access OWA from external.(https://mail.mydomain.com/owa )



and also i created a subdomain:  autodiscovery.mydomain.com

i do not know how can i go head. where and how test it?

Thanks
0
Naming convention for Server 2016 Essentials SSL certificate.

Setting up a Server 2016 for remote user access.

I've set up sbs 2011 and usually I name the certificates using remote.myserver.com along with autodiscover.myserver.com when getting them from Godaddy.

So,my question is this still the way to go or is it different?
0
Windows 10 machine, can't pull up a URL. Can go from a laptop in the same organization or any other computer but this desktop isn't working. The laptop that works is windows 7.

Website is https://rcm.emdeon.com/Portal?_ga=2.24648314.1352853988.1529636377-1009271983.1529636377  which alters URL wise to https://cda.changehealthcare.com

The windows 10 machine I am trying to get to the URL from can't go directly to the URL https://cda.changehealthcare.com

When I ping cda.changehealthcare.com from the machine I can't access it from I get the following IP: 170.138.16.152
When I ping cda.changehealthcare.com from my machine where I can get to the site, the IP is the same in the result of the ping.

I ran CCleaner
I ran temp file cleanup
The system is missing antivirus.

I loaded Webroot to run some scans
It found a malware infection gen.malware   server.exe

Cleaned  that. Going to run temp file clean up as well.
Will reboot and try again.

I checked IE settings to remove proxy server checkbox
Any other ideas?
0
I am in need of an Excel macro that will perform the following:

Compare two columns of stock symbols that are numerically listed and the results of the comparison displayed in a third column.  I’m looking for stocks in column B that have improved in their numerical order (one being the best) from their listing in column A.  The results would be displayed in new column C, and the entries would be listed in order of those making the best improvement at the top.

Considerations:
•      Columns A and B contain 200 entries (rows) each.  No blank cells in either column A or B.
•      Column B may have symbols that are not contained in column A.  
•      Symbols in column B not listed in column A would receive the highest ratings in column C.
•      If there are two or more symbols in column B that are not in column A, the symbols in column B would be ranked accordingly in column C.

Example of conditions for column C listing using attached example file: Two columns of Symbols.xlsx.
•      Symbol ARDM is listed in column B but not column A, so it goes to the top of the list in column C and is listed alphabetically (preferred, but not necessary).
•      Symbol FCRE also listed in column B but not column A, so it goes to the top of the list in column C and is listed alphabetically (preferred, but not necessary).
•      ATNM was 151 in column A, and is 8 in column B, a gain of 143, so it would go above CADC, which was 91 in column A and is 10 in column B for a gain of 81.
•      CADC would go above NEPT …
0
I am working in Access 2010.  I have a main form with subform1 and subform2 (this is a continuous form) on subform1.  The problem is with the tab order of subform2.  There are only two fields  on the form.  They are phone, with an input mask, and phone type.  The tab order is correct and it should go to phone but the tab moves it from subform1 to the phone type field and completely bypasses the phone field.  The next tab takes you to the phone field.  This only happens on the first record.  Once the phone and type are filed in it advances to the second record's phone field first.

I set up forms like this a lot and have never seen it act this way.  Any ideas why this is happening?
0
Cloud Class® Course: Microsoft Exchange Server
LVL 12
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

When I run the script: Get-MailboxPermission 'Joe Bloggs' | Select User,AccessRights | ft -autosize
I get an output that included a lot of default users such as: Domain Admins, Enterprise Admins, Exchange Domain Servers, Exchange Services etc

How could the list produced be reduced to just normal users. Something like  Where-Object {$_.name  -NotLike "*Admin"} may work. How would the script look that removed the line containing *Admin* or remove -Like '*Exchange*'. There are also quite a few SIDs being displayed as will so any entry with 'S-1-5' needs to be removed.

The attached text file are the ones I need to go away in the output.
0
SBS 2011 SSL renewal from Go Daddy.
I download the new cert,use the wizard to install and it gives me an invalid cert.

I had M$ dial in the last time on a different server and it involved serial number and thumbprint fixes to install the new cert.
Anybody got a real step by step guide on how to do this?
0
our network is comprised of 3 vlans and 1 lan. the main default lan is 191.168.0.1 - 191.168.1.255
our vlans are 192.168.10.1, 192.168.20.1 and 192.168.30.1. we have been having dns issues. i can do a search on our network for server name i get not found. if i search using ip address it is found. i can go into our dns server and some address show up and some do not. a weird thing is that if we use the dhcp server to hand out ips, some of our cell phones will not be able to connect to the signal. it can see the signal but can get an ip address. when we put our dhcp on our watchguard firewall the cell phones dont have an issue. we have been told we shouldnt be using the 191.168.0... as internal ip address, could confuse with the outside world. any ideas?

thank you
0
I have a similar scenario. I am searching column A for the text "Avg" and then I need to copy the cell in Column E of the same row that the text was found. Then I am pasting it into a word table ( also having issues with placing the paste INSIDE the table).
 Sub CopyAndPaste()
Dim myfile, wdApp As New Word.Application, wdDoc As Word.Document
myfile = Application.GetOpenFilename(, , "Browse for Document")
Range("e4").Copy
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Open(myfile)
wdDoc.Range.Characters.Last.PasteExcelTable False, True, False
End Sub 

Open in new window

In this code, I have entered the cell that I want copied manually from looking at the sheet. I need this to be automated.
It pastes into the Word doc but underneath the table I want it to go in. Can I bookmark the table and set code to paste it in cell (2,4)?
0
Using Access 2016:  I have a Query which groups agents by sales. Not every one will have data that month. I would like to email each individual agent his sales for that month. My questions are:
1. what's the best way to set this up, IE should I use a query, or a report based upon the query. I would need to create an agents table with email and name.
2. what are the steps involved?
3. what would be the code, we currently use go daddy for our email. We do not have a server in-house.
4, what event of the report or query would I use to add the code?
5. can you share code that works for 2016 access?

is this even possible? If the agent has no sales for that month, it should not create the email or should not create a report, if the report is based on a query?
If you can help, I would be gratefully appreciative, or if you can point me to a "dummies" link where I can try to create something.

The last question I had, I got some awesome answers from PatHartman and John . I am in hopes that one of the experts can help me with this as well as those two helped me with my query question. I know this is a lot to ask, but if you know, please help.
0
Andy's VMware vSphere tip#20: Created your 100 Daily VMware vSphere Daily Checks yet ? Our Sysops, when they start a shift monitoring VMware vSphere clusters, go through a checklist of 100 things to check, when they come on shift before they attend to anything else like putting the kettle on for a cuppa! I'll start you off...

You may think that 100 checks to perform, is time consuming, but it takes a Sysop approx 1 hour, to go through all checks, and sign them off.

1. Connected to vCenter Server without issue ?
2. Any alerts present at the Datacentre ?
3. Any alerts present at the Cluster ?
4. All hosts responding and online ?
5. Any alerts present per host ?

....

If you would like to discuss this post further please post a question to the VMware Topic area.

1

Golang

331

Solutions

778

Contributors

Golang, also called Go, is an open source programming language that is a statically-typed language with syntax loosely derived from C, adding automatic memory management, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library. Go is a general-purpose systems programming language that aims to be efficient both for development and execution with a focus on fast compilation and increased maintainability of large projects. Go was originally targeted at systems programming tasks such as building server/web applications, high throughput middleware and databases.